Disable Qt::BypassWindowManagerHint, workaround #583 #517

This commit is contained in:
Filip Kilibarda
2020-04-26 12:36:21 -07:00
committed by borgmanJeremy
parent ebc94b1131
commit 77c509e798

View File

@@ -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