dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 2783e82bf847e9f3e46f9d09037799a31d12c9ad
parent 66ef4ecfec46eb95cc8db8d9d66502b3578d723c
Author: Leonardo Hernández Hernández <leohdz172@proton.me>
Date:   Sat, 25 Nov 2023 18:50:42 -0600

make sure to unlink Monitor.request_state listener

Diffstat:
Mdwl.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -661,13 +661,15 @@ cleanupmon(struct wl_listener *listener, void *data) LayerSurface *l, *tmp; int i; - for (i = 0; i <= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY; i++) + /* m->layers[i] are intentionally not unlinked */ + for (i = 0; i < LENGTH(m->layers); i++) wl_list_for_each_safe(l, tmp, &m->layers[i], link) wlr_layer_surface_v1_destroy(l->layer_surface); wl_list_remove(&m->destroy.link); wl_list_remove(&m->frame.link); wl_list_remove(&m->link); + wl_list_remove(&m->request_state.link); m->wlr_output->data = NULL; wlr_output_layout_remove(output_layout, m->wlr_output); wlr_scene_output_destroy(m->scene_output);