xserver-multidpi/hw
Carlos Garnacho ca17f3e9fd xwayland: Lock the pointer if it is confined and has no cursor
In the typical pattern in games of "hide cursor, grab with a confineTo,
warp constantly the pointer to the middle of the window" the last warping
step is actually rather optional. Some games may choose to just set up a
grab with confineTo argument, and trust that they'll get correct relative
X/Y axis values despite the hidden cursor hitting the confinement window
edge.

To cater for these cases, lock the pointer whenever there is a pointer
confinement and the cursor is hidden. This ensures the pointer position
is in sync with the compositor's when it's next shown again, and more
importantly resorts to the relative pointer for event delivery.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-06-07 14:48:32 +10:00
..
dmx dmx: Fix decl mismatch for XRT_WINDOW 2017-05-03 15:44:04 -04:00
kdrive xephyr: Fix regeneration 2017-05-11 14:13:12 -04:00
vfb Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xfree86 xfree86: Add Option "PreferCloneMode" 2017-06-05 18:18:53 +09:00
xnest Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xquartz Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xwayland xwayland: Lock the pointer if it is confined and has no cursor 2017-06-07 14:48:32 +10:00
xwin Add meson.build for XWin server (v2) 2017-06-02 09:32:35 -07:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build Add meson.build for XWin server (v2) 2017-06-02 09:32:35 -07:00