From e2038450f2b7746d5c2600b0b04bc7717a29c986 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Tue, 29 Sep 2026 13:53:42 +0200 Subject: [PATCH] fix popup positioning Related: https://codeberg.org/dwl/dwl/pulls/1244 Co-authored-by: DanD --- dwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 26fb3a0..216deb5 100644 --- a/dwl.c +++ b/dwl.c @@ -1014,8 +1014,8 @@ commitpopup(struct wl_listener *listener, void *data) return; } box = type == LayerShell ? l->mon->m : c->mon->w; - box.x -= (type == LayerShell ? l->scene->node.x : c->geom.x); - box.y -= (type == LayerShell ? l->scene->node.y : c->geom.y); + box.x -= (type == LayerShell ? l->scene->node.x : c->geom.x - c->surface.xdg->geometry.x); + box.y -= (type == LayerShell ? l->scene->node.y : c->geom.y - c->surface.xdg->geometry.y); wlr_xdg_popup_unconstrain_from_box(popup, &box); wl_list_remove(&listener->link); free(listener);