[PATCH xwayland] xwayland: Always update the wl_pointer cursor on pointer focus

Keith Packard keithp at keithp.com
Mon Sep 21 14:28:14 PDT 2015


Jonas Ã…dahl <jadahl at gmail.com> writes:

> 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.

It seems like it would be far simpler to just remember the last cursor
set down in the xwayland bits and set the cursor back to that on
enter. If the actual cursor needs to change to something else, it'll get
set immediately afterwards.

Alternatively, just hacking ChangeToCursor to have a way to skip the
check for identical cursors would be a pretty simple way to make sure
your driver always saw DisplayCursor calls for every cursor change, and
you could do whatever optimizations you wanted in there.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150921/da2007c4/attachment.sig>


More information about the xorg-devel mailing list