Merge branch 'github/fork/Geo25rey/cursor_is_attached' into 'master'

wlr_cursor: add wlr_cursor_is_input_device_attached to wlr_cursor

See merge request wlroots/wlroots!2403
This commit is contained in:
Geoffrey Casper 2026-01-15 06:44:57 +00:00
commit 7836e0d069
2 changed files with 23 additions and 5 deletions

View file

@ -166,6 +166,13 @@ void wlr_cursor_set_xcursor(struct wlr_cursor *cur,
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:
*