From aa547bad843439615bc0a7f97a55d81058b2e9c8 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 30 May 2025 02:52:26 -0700 Subject: [PATCH] wayland/popupanchor: consider window size in anchor dirty state With nonstandard edges or gravity, the compositor might not reposition a popup when its size changes, and its unclear if its supposed to. --- src/wayland/popupanchor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/popupanchor.cpp b/src/wayland/popupanchor.cpp index 3baee9fe..cbbccae9 100644 --- a/src/wayland/popupanchor.cpp +++ b/src/wayland/popupanchor.cpp @@ -24,7 +24,7 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo // If a popup becomes invisble after creation ensure the _q properties will // be set and not ignored because the rest is the same. - anchor->updatePlacement({popupRole != nullptr, 0}, {}); + anchor->updatePlacement({popupRole != nullptr, 0}, window->size()); if (onlyIfDirty && !anchor->isDirty()) return; anchor->markClean();