Fix - MacOS - activate new widgets, swith to fullscreen mode+hotkeys

This commit is contained in:
Yuriy Puchkov
2020-11-24 10:08:12 -08:00
parent 4c49461a7a
commit 69e698bdb1
2 changed files with 22 additions and 5 deletions

View File

@@ -115,10 +115,13 @@ CaptureWidget::CaptureWidget(const uint id,
resize(pixmap().size());
#elif (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \
defined(Q_OS_MACX))
setWindowFlags(Qt::WindowStaysOnTopHint | Qt::BypassWindowManagerHint |
Qt::FramelessWindowHint | Qt::NoDropShadowWindowHint |
Qt::ToolTip | Qt::Popup);
// Emulate fullscreen mode
// setWindowFlags(Qt::WindowStaysOnTopHint |
// Qt::BypassWindowManagerHint |
// Qt::FramelessWindowHint |
// Qt::NoDropShadowWindowHint | Qt::ToolTip |
// Qt::Popup
// );
QScreen* currentScreen = QGuiApplication::screenAt(QCursor::pos());
move(currentScreen->geometry().x(), currentScreen->geometry().y());
resize(currentScreen->size());