core/popupwindow: add grabFocus

Allows standard wayland focus grabs on non hyprland compositors.
This commit is contained in:
outfoxxed 2026-01-13 01:24:20 -08:00
parent de1bfe028d
commit dca652366a
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 16 additions and 1 deletions

View file

@ -59,7 +59,7 @@ void ProxyPopupWindow::completeWindow() {
}
this->window->setTransientParent(bw);
this->window->setFlag(Qt::ToolTip);
this->window->setFlag(this->bWantsGrab ? Qt::Popup : Qt::ToolTip);
this->mAnchor.markDirty();
PopupPositioner::instance()->reposition(&this->mAnchor, this->window);