From cf5d544ebf0d8182b5119c296592bdf88ab7a212 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Thu, 17 Oct 2024 16:14:51 +0200 Subject: [PATCH] xdg_popup: copy parent properties during construction --- src/ifs/wl_surface/xdg_surface.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifs/wl_surface/xdg_surface.rs b/src/ifs/wl_surface/xdg_surface.rs index 73680c7e..6acd8f00 100644 --- a/src/ifs/wl_surface/xdg_surface.rs +++ b/src/ifs/wl_surface/xdg_surface.rs @@ -389,6 +389,8 @@ impl XdgSurfaceRequestHandler for XdgSurface { workspace_link: Default::default(), }); popup.parent.set(Some(user.clone())); + popup.xdg.set_popup_stack(&parent.popup_display_stack.get()); + popup.xdg.set_output(&parent.surface.output.get()); parent.popups.set(req.id, user); } self.ext.set(Some(popup));