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

...unless another wl_pointer.enter event is sent in the same wl_pointer.frame.

Signed-off-by: Xaver Hugl <xaver.hugl@kde.org>
This commit is contained in:
Xaver Hugl 2026-02-17 16:36:16 +01:00
parent 5231c0ee20
commit 62371dea0f

View file

@ -2145,6 +2145,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.