mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-24 07:30:30 +01:00
In Wayland, mouse coordinates are not updated after all x11 clients have left, causing the mouse information to remain at the position left by the last x11 client. However, if CheckMotion is called at this point for other reasons (such as window mapped, reactive, etc.), xwayland might continue to send enter events to x11 clients, even if the mouse is actually on a Wayland client. This MR introduces and checks pointer_enter_count to determine if the mouse has left an x11 client and is now on a Wayland client. When it's confirmed that the mouse is no longer on an x11 client but on a Wayland client, returning TRUE in sprite_check_lost_focus causes XYToWindow to return to the root window, preventing further enter events from being sent to x11 clients. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2112> |
||
|---|---|---|
| .. | ||
| kdrive | ||
| vfb | ||
| xfree86 | ||
| xnest | ||
| xquartz | ||
| xwayland | ||
| xwin | ||
| meson.build | ||