diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-06 13:31:48 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-06 13:31:48 -0600 |
commit | 19b5d47a9e712b980749b7b9e1c562701d5afafc (patch) | |
tree | e4833f00500cd18f511810c25ffbcc0a2214663c | |
parent | c9a0a8bf6de9130655342e362a5a9f09c6a7fd08 (diff) |
fix popups appearing outside the monitor
and a potentially crash
-rw-r--r-- | dwl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |