From bff86b5345aaa0bb25697c26bfdbf8dc10ec2a61 Mon Sep 17 00:00:00 2001 From: zhangfuwen Date: Sat, 2 Apr 2022 12:55:11 +0800 Subject: [PATCH] pinwidget: allow moving widget partially outside of screen under linux --- src/tools/pin/pinwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/pin/pinwidget.cpp b/src/tools/pin/pinwidget.cpp index 542e74fd92..93cd5cf63b 100644 --- a/src/tools/pin/pinwidget.cpp +++ b/src/tools/pin/pinwidget.cpp @@ -64,6 +64,10 @@ PinWidget::PinWidget(const QPixmap& pixmap, const int m = MARGIN * devicePixelRatio; QRect adjusted_pos = geometry + QMargins(m, m, m, m); setGeometry(adjusted_pos); +#if defined(Q_OS_LINUX) + setWindowFlags( Qt::X11BypassWindowManagerHint ); +#endif + #if defined(Q_OS_MACOS) if (currentScreen) { QPoint topLeft = currentScreen->geometry().topLeft();