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
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
3 changed files with 22 additions and 2 deletions

View file

@ -151,6 +151,8 @@ void PopupPositioner::reposition(PopupAnchor* anchor, QWindow* window, bool only
if (onlyIfDirty && !anchor->isDirty()) return;
anchor->markClean();
emit anchor->anchoring();
auto adjustment = anchor->adjustment();
auto screenGeometry = parentWindow->screen()->geometry();
auto anchorRectGeometry = anchor->rect().qrect().translated(parentGeometry.topLeft());