Skip to content

spice-widget: Ungrab mouse on leave event on Wayland

Olivier Fourdan requested to merge ofourdan/spice-gtk:issue83 into master

The Spice Gtk widget relies on pointer grabs to receive all pointer events even after the pointer has left the window.

While that works on X11, on Wayland there is no active pointer grab, so once the pointer has left the SPICE widget on Wayland, the events are routed to the window with the pointer focus instead of ours.

To avoid the problem, on Wayland, we simply ungrab the pointer once it leaves the window.

Signed-off-by: Olivier Fourdan ofourdan@redhat.com #83 (closed)

Merge request reports