destroy scene_output in cleanupmon()

This commit is contained in:
Leonardo Hernández Hernández 2022-03-20 19:09:28 -06:00
parent 3e79a9a5d7
commit faaee90cbd
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

1
dwl.c
View File

@ -582,6 +582,7 @@ cleanupmon(struct wl_listener *listener, void *data)
wl_list_remove(&m->frame.link); wl_list_remove(&m->frame.link);
wl_list_remove(&m->link); wl_list_remove(&m->link);
wlr_output_layout_remove(output_layout, m->wlr_output); wlr_output_layout_remove(output_layout, m->wlr_output);
wlr_scene_output_destroy(m->scene_output);
if ((nmons = wl_list_length(&mons))) if ((nmons = wl_list_length(&mons)))
do /* don't switch to disabled mons */ do /* don't switch to disabled mons */