mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Simplify Tooltip flags on Linux for Sway (#1824)
This commit is contained in:
parent
caa11dda3e
commit
214afc8fc2
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue