Skip to content

Commit aa547ba

Browse files
committed
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.
1 parent d1df932 commit aa547ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wayland/popupanchor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo
2424

2525
// If a popup becomes invisble after creation ensure the _q properties will
2626
// be set and not ignored because the rest is the same.
27-
anchor->updatePlacement({popupRole != nullptr, 0}, {});
27+
anchor->updatePlacement({popupRole != nullptr, 0}, window->size());
2828

2929
if (onlyIfDirty && !anchor->isDirty()) return;
3030
anchor->markClean();

0 commit comments

Comments
 (0)