mirror of
https://github.com/brl/mutter.git
synced 2025-01-26 19:39:20 +00:00
Rui Matos
1b29113150
wayland: Set/unset wayland focus on mutter grab/ungrab operations
This ensures that we send the proper leave and enter events to wayland clients. Particularly, this solves a bug in SSD xwayland windows where clicking and dragging on the title bar to move the window only works on the odd turn (unless the pointer moves away from the title bar between tries). This happens because xwayland gets a button press but doesn't see the release so when it gets the next button press it discards it because its pointer button tracking logic says that the button is already pressed. Sending the proper wayland pointer leave event fixes it since wayland clients must forget about button state at that point. https://bugzilla.gnome.org/show_bug.cgi?id=726123
…
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%