forked from quickshell/quickshell
core/popupanchor: emit anchoring() before checking anchor props
This commit is contained in:
parent
6f9993394a
commit
e3d003e7ab
2 changed files with 4 additions and 4 deletions
|
@ -21,6 +21,8 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo
|
|||
auto* waylandWindow = dynamic_cast<QWaylandWindow*>(window->handle());
|
||||
auto* popupRole = waylandWindow ? waylandWindow->surfaceRole<::xdg_popup>() : nullptr;
|
||||
|
||||
emit anchor->anchoring();
|
||||
|
||||
// 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}, {});
|
||||
|
@ -42,8 +44,6 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo
|
|||
|
||||
positioner.set_constraint_adjustment(anchor->adjustment().toInt());
|
||||
|
||||
emit anchor->anchoring();
|
||||
|
||||
auto anchorRect = anchor->rect();
|
||||
|
||||
if (auto* p = window->transientParent()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue