|
|
@ -566,7 +566,6 @@ struct wlr_output_cursor *wlr_output_cursor_create(struct wlr_output *output) {
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cursor->output = output;
|
|
|
|
cursor->output = output;
|
|
|
|
wl_signal_init(&cursor->events.destroy);
|
|
|
|
|
|
|
|
wl_list_init(&cursor->surface_commit.link);
|
|
|
|
wl_list_init(&cursor->surface_commit.link);
|
|
|
|
cursor->surface_commit.notify = output_cursor_handle_commit;
|
|
|
|
cursor->surface_commit.notify = output_cursor_handle_commit;
|
|
|
|
wl_list_init(&cursor->surface_destroy.link);
|
|
|
|
wl_list_init(&cursor->surface_destroy.link);
|
|
|
@ -581,7 +580,6 @@ void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
output_cursor_reset(cursor);
|
|
|
|
output_cursor_reset(cursor);
|
|
|
|
wlr_signal_emit_safe(&cursor->events.destroy, cursor);
|
|
|
|
|
|
|
|
if (cursor->output->hardware_cursor == cursor) {
|
|
|
|
if (cursor->output->hardware_cursor == cursor) {
|
|
|
|
// If this cursor was the hardware cursor, disable it
|
|
|
|
// If this cursor was the hardware cursor, disable it
|
|
|
|
output_set_hardware_cursor(cursor->output, NULL, 0, 0);
|
|
|
|
output_set_hardware_cursor(cursor->output, NULL, 0, 0);
|
|
|
|