mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
seat/pointer: handle duplicate presses/releases correctly
This commit is contained in:
parent
775817e278
commit
8730ca9661
3 changed files with 36 additions and 17 deletions
|
|
@ -172,6 +172,11 @@ struct wlr_seat_pointer_grab {
|
|||
|
||||
#define WLR_POINTER_BUTTONS_CAP 16
|
||||
|
||||
struct wlr_seat_pointer_button {
|
||||
uint32_t button;
|
||||
size_t n_pressed;
|
||||
};
|
||||
|
||||
struct wlr_seat_pointer_state {
|
||||
struct wlr_seat *seat;
|
||||
struct wlr_seat_client *focused_client;
|
||||
|
|
@ -184,8 +189,9 @@ struct wlr_seat_pointer_state {
|
|||
bool sent_axis_source;
|
||||
enum wl_pointer_axis_source cached_axis_source;
|
||||
|
||||
uint32_t buttons[WLR_POINTER_BUTTONS_CAP];
|
||||
struct wlr_seat_pointer_button buttons[WLR_POINTER_BUTTONS_CAP];
|
||||
size_t button_count;
|
||||
|
||||
uint32_t grab_button;
|
||||
uint32_t grab_serial;
|
||||
uint32_t grab_time;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue