diff options
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 1bf548db..263b6758 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -283,6 +283,19 @@ void cursor_rebase(struct sway_cursor *cursor) { | |||
283 | cursor_do_rebase(cursor, time_msec, cursor->previous.node, surface, sx, sy); | 283 | cursor_do_rebase(cursor, time_msec, cursor->previous.node, surface, sx, sy); |
284 | } | 284 | } |
285 | 285 | ||
286 | void cursor_rebase_all(void) { | ||
287 | if (!root->outputs->length) { | ||
288 | return; | ||
289 | } | ||
290 | |||
291 | struct sway_seat *seat; | ||
292 | wl_list_for_each(seat, &server.input->seats, link) { | ||
293 | if (!seat_doing_seatop(seat)) { | ||
294 | cursor_rebase(seat->cursor); | ||
295 | } | ||
296 | } | ||
297 | } | ||
298 | |||
286 | static int hide_notify(void *data) { | 299 | static int hide_notify(void *data) { |
287 | struct sway_cursor *cursor = data; | 300 | struct sway_cursor *cursor = data; |
288 | wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0); | 301 | wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0); |