rootston: keep one xcursor_theme per seat

This commit is contained in:
emersion 2017-11-11 23:53:45 +01:00
parent aaf0691883
commit 2dccb11741
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 15 additions and 11 deletions

View file

@ -241,13 +241,14 @@ void output_add_notify(struct wl_listener *listener, void *data) {
wlr_output_layout_add_auto(desktop->layout, wlr_output);
}
if (roots_xcursor_theme_load(desktop->xcursor_theme, wlr_output->scale)) {
wlr_log(L_ERROR, "Cannot load xcursor theme with scale %d",
wlr_output->scale);
}
struct roots_seat *seat;
wl_list_for_each(seat, &input->seats, link) {
if (roots_xcursor_theme_load(seat->cursor->xcursor_theme,
wlr_output->scale)) {
wlr_log(L_ERROR, "Cannot load xcursor theme for output '%s' "
"with scale %d", wlr_output->name, wlr_output->scale);
}
roots_seat_configure_cursor(seat);
roots_seat_configure_xcursor(seat);
}