From fecbaa2bd6f49bb2d6e5d83149a381224e348887 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 1 Dec 2022 10:12:23 +0100 Subject: [PATCH] scene: stop listening for output enable/mode events These will go away. --- include/wlr/types/wlr_scene.h | 1 - types/scene/wlr_scene.c | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index e3e56cf7..6d1e75b7 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -180,7 +180,6 @@ struct wlr_scene_output { bool prev_scanout; struct wl_listener output_commit; - struct wl_listener output_mode; struct wl_listener output_damage; struct wl_listener output_needs_frame; diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 103ea401..3ede2f2f 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1196,12 +1196,6 @@ static void scene_output_handle_commit(struct wl_listener *listener, void *data) } } -static void scene_output_handle_mode(struct wl_listener *listener, void *data) { - struct wlr_scene_output *scene_output = wl_container_of(listener, - scene_output, output_mode); - scene_output_update_geometry(scene_output); -} - static void scene_output_handle_damage(struct wl_listener *listener, void *data) { struct wlr_scene_output *scene_output = wl_container_of(listener, scene_output, output_damage); @@ -1253,9 +1247,6 @@ struct wlr_scene_output *wlr_scene_output_create(struct wlr_scene *scene, scene_output->output_commit.notify = scene_output_handle_commit; wl_signal_add(&output->events.commit, &scene_output->output_commit); - scene_output->output_mode.notify = scene_output_handle_mode; - wl_signal_add(&output->events.mode, &scene_output->output_mode); - scene_output->output_damage.notify = scene_output_handle_damage; wl_signal_add(&output->events.damage, &scene_output->output_damage); @@ -1292,7 +1283,6 @@ void wlr_scene_output_destroy(struct wlr_scene_output *scene_output) { wlr_damage_ring_finish(&scene_output->damage_ring); wl_list_remove(&scene_output->link); wl_list_remove(&scene_output->output_commit.link); - wl_list_remove(&scene_output->output_mode.link); wl_list_remove(&scene_output->output_damage.link); wl_list_remove(&scene_output->output_needs_frame.link);