xserver/hw/xwayland
Carlos Garnacho c6df0d03de 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>
(cherry picked from commit ca17f3e9fd)
2017-09-25 15:34:10 -04:00
..
.gitignore xwayland: Bind pointer constraints global 2016-10-05 13:50:46 -04:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
Makefile.am xwayland: Bind pointer constraints global 2016-10-05 13:50:46 -04:00
xwayland-cursor.c xwayland: clear cursor frame callback 2017-03-13 09:56:23 +01:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-23 14:27:16 -05:00
xwayland-glamor-xv.c xwayland: Fix compiler warning in GLAMOR Xv 2016-04-15 16:22:16 -04:00
xwayland-glamor.c xwayland: Monitor client states to destroy callbacks 2017-03-13 09:56:24 +01:00
xwayland-input.c xwayland: Lock the pointer if it is confined and has no cursor 2017-09-25 15:34:10 -04:00
xwayland-output.c xwayland: Update root window size when desktop size changes 2017-09-25 15:34:10 -04:00
xwayland-shm.c xwayland-shm: block signals during fallocate 2016-11-01 14:00:04 -04:00
xwayland-vidmode.c xwayland: Pretend we support viewport in vidmode 2016-03-28 14:10:59 -04:00
xwayland.c xwayland: Update root window size when desktop size changes 2017-09-25 15:34:10 -04:00
xwayland.h xwayland: Add pointer warp emulator 2016-10-05 13:51:02 -04:00