Simplify Tooltip flags on Linux for Sway (#1824)

This commit is contained in:
pajlada 2020-07-25 09:00:12 -04:00 committed by GitHub
parent caa11dda3e
commit 214afc8fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,9 +32,13 @@ TooltipWidget::TooltipWidget(BaseWidget *parent)
this->setStayInScreenRect(true); this->setStayInScreenRect(true);
this->setAttribute(Qt::WA_ShowWithoutActivating); this->setAttribute(Qt::WA_ShowWithoutActivating);
#ifdef Q_OS_LINUX
this->setWindowFlags(Qt::ToolTip);
#else
this->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | this->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint |
Qt::X11BypassWindowManagerHint | Qt::X11BypassWindowManagerHint |
Qt::BypassWindowManagerHint); Qt::BypassWindowManagerHint);
#endif
displayImage_->hide(); displayImage_->hide();
displayImage_->setAlignment(Qt::AlignHCenter); displayImage_->setAlignment(Qt::AlignHCenter);