summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-24 14:30:52 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-24 14:30:52 -0500
commit097b4a30f5906fb45ce805115dd9dde48aefe60e (patch)
treedd5e801488e12bb9d1e13e1fc43ae579785f0197
parentc1578bc14db7822743ffdbde93b2c22b1a0b5f6a (diff)
unconstrain layer shell popups from monitor size
unconstrain other popups from monitor usable area
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 3ccf9bc..5f4d5fd 100644
--- a/dwl.c
+++ b/dwl.c
@@ -956,7 +956,7 @@ createnotify(struct wl_listener *listener, void *data)
xdg_surface->popup->parent->data, xdg_surface);
if (!(c = toplevel_from_popup(xdg_surface->popup)) || !c->mon)
return;
- box = c->mon->w;
+ box = c->type == LayerShell ? c->mon->m : c->mon->w;
box.x -= c->geom.x;
box.y -= c->geom.y;
wlr_xdg_popup_unconstrain_from_box(xdg_surface->popup, &box);