xserver/hw
Liu Heng e673a4bda0 xwayland: prevent X11 get enter event when pointer is over Wayland client
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>
2026-01-20 10:02:36 +08:00
..
kdrive Revert "os: unexport Os*() functions" 2025-07-20 12:41:06 -07:00
vfb Revert "os: unexport Os*() functions" 2025-07-20 12:41:06 -07:00
xfree86 Fix drmModeCreatePropertyBlob() length parameter after f894801fa2 2026-01-04 15:39:33 -08:00
xnest Revert "dix: unexport NewCurrentScreen()" 2025-09-06 17:01:37 +00:00
xquartz Revert "dix: unexport dixLookupProperty()" 2025-11-17 21:33:26 +01:00
xwayland xwayland: prevent X11 get enter event when pointer is over Wayland client 2026-01-20 10:02:36 +08:00
xwin Strip trailing whitespace from source files 2025-10-05 11:56:48 -07:00
meson.build meson.build: print a summary of the DDX to build 2025-03-24 03:05:35 +00:00