From 214afc8fc280320af68661d8b0ff833966a113f8 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sat, 25 Jul 2020 09:00:12 -0400 Subject: [PATCH] Simplify Tooltip flags on Linux for Sway (#1824) --- src/widgets/TooltipWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/TooltipWidget.cpp b/src/widgets/TooltipWidget.cpp index d0898b452..b1c4385a9 100644 --- a/src/widgets/TooltipWidget.cpp +++ b/src/widgets/TooltipWidget.cpp @@ -32,9 +32,13 @@ TooltipWidget::TooltipWidget(BaseWidget *parent) this->setStayInScreenRect(true); this->setAttribute(Qt::WA_ShowWithoutActivating); +#ifdef Q_OS_LINUX + this->setWindowFlags(Qt::ToolTip); +#else this->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint | Qt::BypassWindowManagerHint); +#endif displayImage_->hide(); displayImage_->setAlignment(Qt::AlignHCenter);