wlr_scene_output: Send output leave events before destroying the output

Alexander Orzechowski 3 years ago
parent 61dab42c70
commit 6ddb9e51bd

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

Loading…
Cancel
Save