cursor: update cursor image on scale change

This commit is contained in:
Consolatis 2023-01-26 01:21:43 +01:00 committed by Johan Malm
parent 58382260de
commit 4dc99e2f38
3 changed files with 25 additions and 7 deletions

View file

@ -259,6 +259,17 @@ cursor_set(struct seat *seat, enum lab_cursors cursor)
seat->server_cursor = cursor;
}
void
cursor_update_image(struct seat *seat)
{
enum lab_cursors cursor = seat->server_cursor;
if (cursor == LAB_CURSOR_CLIENT) {
return;
}
wlr_xcursor_manager_set_cursor_image(
seat->xcursor_manager, cursor_names[cursor], seat->cursor);
}
bool
input_inhibit_blocks_surface(struct seat *seat, struct wl_resource *resource)
{