You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently in the process of un-forking glutin in servo. The last issue preventing this is that WindowEvent::MouseInput and WindowEvent::MouseWheel do not provide the mouse's current position.
Since mouse moved events are only received when the window is focused, this makes it possible for a the window to lose focus, the user can move the mouse, and then the window regains focus with its last known mouse position being incorrect. For an application that depends on knowing the mouse position to handle mouse events in different ways, this results in incorrect behavior.
I have two ideas on how to fix this:
Expose the mouse position information on WindowEvent::{MouseInput, MouseWheel}, or
Expose the mouse position information on WindowEvent::Focus (I'll admit this option feels a bit weird, but it could also work).
Do either of these sound like potential options? I would be happy to implement this.
A third option would be to ensure that whenever the window gains pointer focus, a MouseMoved event would be sent after the MouseEntered or Focus event.
Activity
elinorbgr commentedon Nov 12, 2017
A third option would be to ensure that whenever the window gains pointer focus, a
MouseMovedevent would be sent after theMouseEnteredorFocusevent.stuartnelson3 commentedon Nov 12, 2017
That sounds like the simplest solution -- no need to modify the exposed api
stuartnelson3 commentedon Nov 14, 2017
Opened a PR, perhaps it's a solution
fix(window): fullscreen on Linux when builder is set to Borderless(No…