From 62371dea0f37ebec8950c10985b90e284b39bfe4 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 17 Feb 2026 16:36:16 +0100 Subject: [PATCH] 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 --- protocol/wayland.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 58e5649e..4e162292 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -2145,6 +2145,11 @@ 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.