mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-06 04:06:11 -05:00
seat: expose more from_resource() functions
This commit is contained in:
parent
fb739b8293
commit
c22bc0b386
3 changed files with 24 additions and 13 deletions
|
|
@ -627,10 +627,21 @@ bool wlr_seat_validate_touch_grab_serial(struct wlr_seat *seat,
|
|||
struct wlr_seat_client *wlr_seat_client_from_resource(
|
||||
struct wl_resource *resource);
|
||||
|
||||
/**
|
||||
* Get a seat client from a keyboard resource. Returns NULL if inert.
|
||||
*/
|
||||
struct wlr_seat_client *wlr_seat_client_from_keyboard_resource(
|
||||
struct wl_resource *resource);
|
||||
|
||||
/**
|
||||
* Get a seat client from a pointer resource. Returns NULL if inert.
|
||||
*/
|
||||
struct wlr_seat_client *wlr_seat_client_from_pointer_resource(
|
||||
struct wl_resource *resource);
|
||||
|
||||
/**
|
||||
* Get a seat client from a touch resource. Returns NULL if inert.
|
||||
*/
|
||||
struct wlr_seat_client *wlr_seat_client_from_touch_resource(
|
||||
struct wl_resource *resource);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue