From c07a22a923f73ec01c319eba4a13c0566445784d Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Sun, 22 Aug 2021 11:25:42 +0200 Subject: [PATCH] constraint popups to monitor --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index b898537..334adc2 100644 --- a/dwl.c +++ b/dwl.c @@ -886,8 +886,10 @@ createnotify(struct wl_listener *listener, void *data) struct wlr_xdg_surface *xdg_surface = data; Client *c; - if (xdg_surface->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL) + if (xdg_surface->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL) { + wlr_xdg_popup_unconstrain_from_box(xdg_surface->popup, &selmon->m); return; + } /* Allocate a Client for this surface */ c = xdg_surface->data = calloc(1, sizeof(*c));