wlr_scene_output: Send output leave events before destroying the output

This commit is contained in:
Alexander Orzechowski 2022-04-16 05:39:22 -04:00
parent 61dab42c70
commit 6ddb9e51bd
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}