From 77c509e7989b924d31d54e78c6f8e7a7e68968b9 Mon Sep 17 00:00:00 2001 From: Filip Kilibarda Date: Sun, 26 Apr 2020 12:36:21 -0700 Subject: [PATCH] Disable Qt::BypassWindowManagerHint, workaround #583 #517 --- src/widgets/capture/capturewidget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/widgets/capture/capturewidget.cpp b/src/widgets/capture/capturewidget.cpp index 0494d6b4..626ec48c 100644 --- a/src/widgets/capture/capturewidget.cpp +++ b/src/widgets/capture/capturewidget.cpp @@ -136,9 +136,11 @@ CaptureWidget::CaptureWidget(const uint id, move(currentScreen->geometry().x(), currentScreen->geometry().y()); resize(currentScreen->size()); #else - setWindowFlags(Qt::BypassWindowManagerHint | Qt::WindowStaysOnTopHint | - Qt::FramelessWindowHint | Qt::Tool); - resize(pixmap().size()); + // Disable Qt::BypassWindowManagerHint. Workaround for #583 #517 + setWindowFlags(/* Qt::BypassWindowManagerHint */ + Qt::WindowStaysOnTopHint + | Qt::FramelessWindowHint + | Qt::Tool); #endif } // Create buttons