xserver/hw/xwayland
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
..
.gitignore xwayland: Bind pointer constraints global 2016-10-05 13:50:46 -04:00
Makefile.am xwayland: Depend on wayland-protocols to build tablet protocol headers 2017-04-28 11:21:24 +10:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
meson.build xwayland: Depend on wayland-protocols to build tablet protocol headers 2017-04-28 11:21:24 +10:00
xwayland-cursor.c xwayland: update cursor on tablet tools in proximity 2017-04-28 11:21:25 +10:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-08 12:32: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 glamor: Drop glamor_set_screen_pixmap(). 2017-06-02 17:46:46 -07:00
xwayland-input.c xwayland: Lock the pointer if it is confined and has no cursor 2017-06-07 14:48:32 +10:00
xwayland-output.c xwayland: Update root window size when desktop size changes 2017-06-07 14:45:34 +10:00
xwayland-shm.c xserver: Check the right HAVE_*_CONFIG_H. 2017-03-23 13:17:39 -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-06-07 14:45:34 +10:00
xwayland.h xwayland: add tablet pad support 2017-04-28 11:21:25 +10:00