I'm trying to implement scrolling the screen when you move the mouse to the edge of the screen, like in a Blizzard RTS. When the game is fullscreen, there's no problem. But when the game is windowed and I move the mouse off of the window, gettree().getroot().getmouseposition() seems to think that the mouse is still on the window at the last position that it actually was. For example: the mouse's x won't be less than zero even if I move it left off of the window.
The DisplayServer class has what looks like some relevant values in the WindowEvent enum, but it looks like what I want to actually do (just detect if the mouse has left and/or returned to the window) is either unimplemented or undocumented. Or I'm missing something obvious.