mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-07 05:55:58 +01:00
wlr_scene_output: Send output leave events before destroying the output
This commit is contained in:
parent
61dab42c70
commit
6ddb9e51bd
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue