Make it popup instead of tooltip.

This commit is contained in:
Weng Xuetian 2021-06-01 22:59:27 -07:00
parent 0d0eb237a6
commit d14a63d1fc
No known key found for this signature in database
GPG Key ID: 8E8B898CBF2412F9
1 changed files with 2 additions and 3 deletions

View File

@ -87,9 +87,8 @@ private:
FcitxCandidateWindow::FcitxCandidateWindow(QWindow *window, FcitxTheme *theme)
: QWindow(), theme_(theme), parent_(window) {
setFlags(Qt::ToolTip | Qt::FramelessWindowHint |
Qt::BypassWindowManagerHint | Qt::WindowDoesNotAcceptFocus |
Qt::NoDropShadowWindowHint);
setFlags(Qt::Popup | Qt::FramelessWindowHint | Qt::BypassWindowManagerHint |
Qt::WindowDoesNotAcceptFocus | Qt::NoDropShadowWindowHint);
if (isWayland_) {
setTransientParent(parent_);
}