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.
This commit is contained in:
outfoxxed 2025-05-30 02:52:26 -07:00
parent d1df932d60
commit aa547bad84
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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();