aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-04-16 05:39:22 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:17:51 -0400
commit6ddb9e51bd90b0074402c3e4c361f83adb0e402a (patch)
tree47e9b341a6bdf191cadd4edb9c778adbdce1ffa3
parent61dab42c70fd3e0ee211a8b52f387b0c1018510f (diff)
wlr_scene_output: Send output leave events before destroying the output
-rw-r--r--types/scene/wlr_scene.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index e1e381de..656f6626 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -982,12 +982,12 @@ static void scene_output_send_leave_iterator(struct wlr_surface *surface,
}
void wlr_scene_output_destroy(struct wlr_scene_output *scene_output) {
- wlr_addon_finish(&scene_output->addon);
- wl_list_remove(&scene_output->link);
-
wlr_scene_output_for_each_surface(scene_output,
scene_output_send_leave_iterator, scene_output->output);
+ wlr_addon_finish(&scene_output->addon);
+ wl_list_remove(&scene_output->link);
+
free(scene_output);
}