forked from quickshell/quickshell
core/popupanchor: add anchoring signal for last second repositioning
This commit is contained in:
parent
ee93306312
commit
f4066cb4ed
3 changed files with 22 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue