mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
wlr-seat: touch grab begin and end
This commit is contained in:
parent
469729d3af
commit
cbb6fd7352
2 changed files with 39 additions and 0 deletions
|
|
@ -175,6 +175,9 @@ struct wlr_seat {
|
|||
struct wl_signal keyboard_grab_begin;
|
||||
struct wl_signal keyboard_grab_end;
|
||||
|
||||
struct wl_signal touch_grab_begin;
|
||||
struct wl_signal touch_grab_end;
|
||||
|
||||
struct wl_signal request_set_cursor;
|
||||
|
||||
struct wl_signal selection;
|
||||
|
|
@ -371,6 +374,19 @@ void wlr_seat_keyboard_enter(struct wlr_seat *wlr_seat,
|
|||
*/
|
||||
void wlr_seat_keyboard_clear_focus(struct wlr_seat *wlr_seat);
|
||||
|
||||
/**
|
||||
* Start a grab of the touch device of this seat. The grabber is responsible for
|
||||
* handling all touch events until the grab ends.
|
||||
*/
|
||||
void wlr_seat_touch_start_grab(struct wlr_seat *wlr_seat,
|
||||
struct wlr_seat_touch_grab *grab);
|
||||
|
||||
/**
|
||||
* End the grab of the touch device of this seat. This reverts the grab back to
|
||||
* the default grab for the touch device.
|
||||
*/
|
||||
void wlr_seat_touch_end_grab(struct wlr_seat *wlr_seat);
|
||||
|
||||
/**
|
||||
* Get the active touch point with the given `touch_id`. If the touch point does
|
||||
* not exist or is no longer active, returns NULL.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue