From a93b18dbd5a43735709c59590fa0bff427dd888d Mon Sep 17 00:00:00 2001 From: Vyivel Date: Sat, 17 Jul 2021 10:20:35 +0300 Subject: input/pointer: send axis source once per frame Only one wl_pointer.axis_source event is permitted per frame, according to the Wayland specification. Fixes https://github.com/swaywm/wlroots/issues/2973 --- include/wlr/types/wlr_seat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h index 6ee9e44d..631b7dd3 100644 --- a/include/wlr/types/wlr_seat.h +++ b/include/wlr/types/wlr_seat.h @@ -164,6 +164,9 @@ struct wlr_seat_pointer_state { struct wlr_seat_pointer_grab *grab; struct wlr_seat_pointer_grab *default_grab; + bool sent_axis_source; + enum wlr_axis_source cached_axis_source; + uint32_t buttons[WLR_POINTER_BUTTONS_CAP]; size_t button_count; uint32_t grab_button; -- cgit v1.2.3