mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-17 22:05:56 -05:00
wlr_cursor: add wlr_cursor_is_input_device_attached to wlr_cursor
This commit is contained in:
parent
8ad2cc39eb
commit
a77b9b38f4
2 changed files with 23 additions and 5 deletions
|
|
@ -150,6 +150,13 @@ void wlr_cursor_set_image(struct wlr_cursor *cur, const uint8_t *pixels,
|
|||
void wlr_cursor_set_surface(struct wlr_cursor *cur, struct wlr_surface *surface,
|
||||
int32_t hotspot_x, int32_t hotspot_y);
|
||||
|
||||
/**
|
||||
* Returns true when the input device, dev, is attached to the cursor, cur,
|
||||
* by the wlr_cursor_attach_input_device function.
|
||||
*/
|
||||
bool wlr_cursor_is_input_device_attached(struct wlr_cursor *cur,
|
||||
struct wlr_input_device *dev);
|
||||
|
||||
/**
|
||||
* Attaches this input device to this cursor. The input device must be one of:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue