Set default cursor image in rootston

This commit is contained in:
emersion 2017-12-11 10:36:22 +01:00
parent 8ccb5b0b66
commit 925497fbea
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 18 additions and 3 deletions

View file

@ -22,6 +22,7 @@ struct roots_cursor *roots_cursor_create(struct roots_seat *seat) {
free(cursor);
return NULL;
}
cursor->default_xcursor = ROOTS_XCURSOR_DEFAULT;
return cursor;
}
@ -48,7 +49,7 @@ static void roots_cursor_update_position(struct roots_cursor *cursor,
}
if (set_compositor_cursor) {
wlr_xcursor_manager_set_cursor_image(cursor->xcursor_manager,
ROOTS_XCURSOR_DEFAULT, cursor->cursor);
cursor->default_xcursor, cursor->cursor);
cursor->cursor_client = NULL;
}
if (view) {