dwl

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

commit 0729f18dce85cb79b8aaac325a43dba0c5e96ab3
parent 797e0c74b2cbf4a49f83c9269abec06f3293d00c
Author: Micah Gorrell <micah.gorrell@venafi.com>
Date:   Wed, 24 May 2023 10:20:30 -0600

Prevent using a wlr_layer_surface after destroying it, due to no available outputs

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

diff --git a/dwl.c b/dwl.c @@ -836,8 +836,10 @@ createlayersurface(struct wl_listener *listener, void *data) if (!wlr_layer_surface->output) wlr_layer_surface->output = selmon ? selmon->wlr_output : NULL; - if (!wlr_layer_surface->output) + if (!wlr_layer_surface->output) { wlr_layer_surface_v1_destroy(wlr_layer_surface); + return; + } layersurface = ecalloc(1, sizeof(LayerSurface)); layersurface->type = LayerShell;