summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);