dwl

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

commit 19b5d47a9e712b980749b7b9e1c562701d5afafc
parent c9a0a8bf6de9130655342e362a5a9f09c6a7fd08
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Tue,  6 Dec 2022 13:31:48 -0600

fix popups appearing outside the monitor

and a potentially crash

Diffstat:
Mdwl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -914,7 +914,7 @@ createnotify(struct wl_listener *listener, void *data) return; xdg_surface->surface->data = wlr_scene_xdg_surface_create( xdg_surface->popup->parent->data, xdg_surface); - if ((!l || !l->mon) || (!c || !c->mon)) + if ((l && !l->mon) || (c && !c->mon)) return; box = type == LayerShell ? l->mon->m : c->mon->w; box.x -= (type == LayerShell ? l->geom.x : c->geom.x);