mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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
This commit is contained in:
parent
a47f89cf7c
commit
a93b18dbd5
2 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue