mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 12:19:10 +00:00
Xwayland was sending incorrect pointer coordinates to X clients on pointer enter events. This was caused by calling CheckMotion() with a NULL event, which prevented the pointer sprite hot coordinates from being updated properly. Fix this by constructing a proper DeviceEvent of type ET_Enter in pointer_handle_enter, initializing it with the current timestamp and EVENT_SOURCE_FOCUS, and passing it to CheckMotion() instead of NULL. This ensures the pointer sprite coordinates are correctly updated when the pointer enters a window. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2113>