forked from quickshell/quickshell
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:
parent
d1df932d60
commit
aa547bad84
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo
|
||||||
|
|
||||||
// If a popup becomes invisble after creation ensure the _q properties will
|
// If a popup becomes invisble after creation ensure the _q properties will
|
||||||
// be set and not ignored because the rest is the same.
|
// 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;
|
if (onlyIfDirty && !anchor->isDirty()) return;
|
||||||
anchor->markClean();
|
anchor->markClean();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue