[Wayland-bugs] [Bug 760213] wayland: gdk_seat_grab() set cursor not resilient

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Jan 8 13:03:47 PST 2016


https://bugzilla.gnome.org/show_bug.cgi?id=760213

Carlos Garnacho <carlosg at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #318548|none                        |committed
             status|                            |

--- Comment #5 from Carlos Garnacho <carlosg at gnome.org> ---
Created attachment 318548
  --> https://bugzilla.gnome.org/attachment.cgi?id=318548&action=edit
wayland: Force the grab cursor while a grab is active

When a cursor is specified in gdk_seat_grab(), the cursor is reverted as
soon as the pointer enters or leaves another window.

To avoid this issue, store the grab cursor separately, so we force-apply
it in ::set_window_cursor(). Also, unset early the seat info from the
window on gdk_seat_ungrab(), so the next time switch_to_pointer_grab()
happens we end up picking the cursor set for the window underneath the
pointer window.

Based on a patch by Olivier Fourdan <ofourdan at redhat.com>.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20160108/4dbf108a/attachment.html>


More information about the wayland-bugs mailing list