core/popupanchor: add anchoring signal for last second repositioning

This commit is contained in:
outfoxxed 2024-11-19 03:29:31 -08:00
parent ee93306312
commit f4066cb4ed
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 22 additions and 2 deletions

View file

@ -41,6 +41,8 @@ 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()) {
@ -101,6 +103,7 @@ void WaylandPopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bo
bool WaylandPopupPositioner::shouldRepositionOnMove() const { return true; }
void WaylandPopupPositioner::setFlags(PopupAnchor* anchor, QWindow* window) {
emit anchor->anchoring();
auto anchorRect = anchor->rect();
if (auto* p = window->transientParent()) {