Merge branch 'work/pointer-leave' into 'main'

protocol: define that wl_pointer.leave means buttons are no longer pressed

See merge request wayland/wayland!519
This commit is contained in:
Xaver Hugl 2026-03-15 07:18:41 +00:00
commit cee4ff3df1

View file

@ -2196,6 +2196,11 @@
<description summary="leave event">
Notification that this seat's pointer is no longer focused on
a certain surface.
Unless there is an enter event on another surface in the same frame,
the client should assume the button state is reset, in other words
that no buttons are pressed.
Note that this is different from the buttons being released, the
client should avoid triggering actions in response to this.
The leave notification is sent before the enter notification
for the new focus.