diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-27 18:42:51 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-05-31 11:40:47 +0000 |
commit | 638c5cda5116b4b7f6e1156e552945023688d83a (patch) | |
tree | b59fd8279d5cbcf7dad4b5bc8971bfe44b9b1755 | |
parent | 1ab3e582acda1829e2ad84aa278550c5cfa174b1 (diff) |
output: drop wlr_output_cursor.events.destroy
Compositors can just listen to wlr_output.events.destroy instead.
-rw-r--r-- | include/wlr/types/wlr_output.h | 4 | ||||
-rw-r--r-- | types/output/cursor.c | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index a6523d3d..d3d44132 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -40,10 +40,6 @@ struct wlr_output_cursor { struct wlr_surface *surface; struct wl_listener surface_commit; struct wl_listener surface_destroy; - - struct { - struct wl_signal destroy; - } events; }; enum wlr_output_adaptive_sync_status { diff --git a/types/output/cursor.c b/types/output/cursor.c index 2cbf67f5..bd6f757e 100644 --- a/types/output/cursor.c +++ b/types/output/cursor.c @@ -566,7 +566,6 @@ struct wlr_output_cursor *wlr_output_cursor_create(struct wlr_output *output) { return NULL; } cursor->output = output; - wl_signal_init(&cursor->events.destroy); wl_list_init(&cursor->surface_commit.link); cursor->surface_commit.notify = output_cursor_handle_commit; wl_list_init(&cursor->surface_destroy.link); @@ -581,7 +580,6 @@ void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor) { return; } output_cursor_reset(cursor); - wlr_signal_emit_safe(&cursor->events.destroy, cursor); if (cursor->output->hardware_cursor == cursor) { // If this cursor was the hardware cursor, disable it output_set_hardware_cursor(cursor->output, NULL, 0, 0); |