diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-27 07:54:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-27 07:54:00 -0800 |
commit | a0d2a6b445f33b608019809f581a80d28062178d (patch) | |
tree | 289ccf5770963ba14c1f441924b76bb864d8eb07 /include | |
parent | 4267ee2bf351338c2aa6e1ed891e3a324108dec0 (diff) | |
parent | 815d71a3aa24cfb87870741319cae99ba1726b8f (diff) |
Merge pull request #525 from acrisci/serial-validation
Serial validation for grab requests
Diffstat (limited to 'include')
-rw-r--r-- | include/rootston/cursor.h | 9 | ||||
-rw-r--r-- | include/wlr/types/wlr_seat.h | 6 |
2 files changed, 6 insertions, 9 deletions
diff --git a/include/rootston/cursor.h b/include/rootston/cursor.h index de6b7b92..19ac4034 100644 --- a/include/rootston/cursor.h +++ b/include/rootston/cursor.h @@ -10,12 +10,6 @@ enum roots_cursor_mode { ROOTS_CURSOR_ROTATE = 3, }; -struct roots_input_event { - uint32_t serial; - struct wlr_cursor *cursor; - struct wlr_input_device *device; -}; - struct roots_cursor { struct roots_seat *seat; struct wlr_cursor *cursor; @@ -32,9 +26,6 @@ struct roots_cursor { int view_x, view_y, view_width, view_height; float view_rotation; uint32_t resize_edges; - // Ring buffer of input events that could trigger move/resize/rotate - int input_events_idx; - struct roots_input_event input_events[16]; struct wl_listener motion; struct wl_listener motion_absolute; diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h index 28e9a615..f7dea52f 100644 --- a/include/wlr/types/wlr_seat.h +++ b/include/wlr/types/wlr_seat.h @@ -509,4 +509,10 @@ int wlr_seat_touch_num_points(struct wlr_seat *seat); */ bool wlr_seat_touch_has_grab(struct wlr_seat *seat); +/** + * Check whether this serial is valid to start a grab action such as an + * interactive move or resize. + */ +bool wlr_seat_validate_grab_serial(struct wlr_seat *seat, uint32_t serial); + #endif |