seat: expose more from_resource() functions

This commit is contained in:
random human 2019-06-14 19:02:13 +00:00
parent fb739b8293
commit c22bc0b386
No known key found for this signature in database
GPG key ID: 73E5A60444CC77A3
3 changed files with 24 additions and 13 deletions

View file

@ -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