xserver/hw
Jonas Ådahl 07941a50a5 xwayland: Always update the wl_pointer cursor on pointer focus
In Wayland, a client (in this case XWayland) should set the cursor
surface when it receives pointer focus. Not doing this will leave the
curser at whatever it was previously.

When running on XWayland, the X server will not be the entity that
controls what actual pointer cursor is displayed, and it wont be notified
about the pointer cursor changes done by the Wayland compositor. This
causes X11 clients running via XWayland to end up with incorrect pointer
cursors because the X server believes that, if the cursor was previously
set to the cursor C, if we receive Wayland pointer focus over window W
which also has the pointer cursor C, we do not need to update it. This
will cause us to end up with the wrong cursor if cursor C was not the
same one that was already set by the Wayland compositor.

This patch works around this by, when receiving pointer focus, getting
the private mipointer struct changing the "current sprite" pointer to
an invalid cursor in order to trigger the update path next time a cursor
is displayed by dix.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2015-12-01 12:14:03 -05:00
..
dmx dmx: fix typo in the title 2015-09-23 10:39:47 -04:00
kdrive Replace 'sun' with '__sun' 2015-11-30 11:51:22 -05:00
vfb xfixes: Unexport xfixes.h 2015-07-08 16:40:58 -04:00
xfree86 Replace 'sun' with '__sun' 2015-11-30 11:51:22 -05:00
xnest xnest: Fix needless build dependency on xcb-util-keysyms 2015-11-24 10:41:14 -05:00
xquartz XQuartz: Cleanup formatting of DarwinEQInit that was butchered by automation a few years ago 2015-10-19 09:06:22 -07:00
xwayland xwayland: Always update the wl_pointer cursor on pointer focus 2015-12-01 12:14:03 -05:00
xwin dix: Restore PaintWindow screen hook 2015-07-08 16:41:28 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00