mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-04-04 22:39:10 +00:00
Fix - MacOS - activate new widgets, swith to fullscreen mode+hotkeys
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user