From bddf4c417d7efd98378f092178e12bfe80b6f772 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 28 Nov 2019 13:05:09 +0100 Subject: [PATCH] Added Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint for dock overlay for linux --- src/DockOverlay.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/DockOverlay.cpp b/src/DockOverlay.cpp index 99f1edf..afa8e8a 100644 --- a/src/DockOverlay.cpp +++ b/src/DockOverlay.cpp @@ -332,7 +332,11 @@ CDockOverlay::CDockOverlay(QWidget* parent, eMode Mode) : { d->Mode = Mode; d->Cross = new CDockOverlayCross(this); +#ifdef Q_OS_LINUX + setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint); +#else setWindowFlags(Qt::Tool | Qt::FramelessWindowHint); +#endif setWindowOpacity(1); setWindowTitle("DockOverlay"); setAttribute(Qt::WA_NoSystemBackground); @@ -573,7 +577,11 @@ CDockOverlayCross::CDockOverlayCross(CDockOverlay* overlay) : d(new DockOverlayCrossPrivate(this)) { d->DockOverlay = overlay; +#ifdef Q_OS_LINUX + setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint); +#else setWindowFlags(Qt::Tool | Qt::FramelessWindowHint); +#endif setWindowTitle("DockOverlayCross"); setAttribute(Qt::WA_TranslucentBackground);