Skip to content

Commit 1ada71c

Browse files
MitnitskyCopilot
andcommitted
fix(macos): use show() instead of showFullScreen() to avoid desktop animation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 52e5f43 commit 1ada71c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/core/flameshot.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ CaptureWidget* Flameshot::gui(const CaptureRequest& req)
131131
#ifdef Q_OS_WIN
132132
m_captureWindow->show();
133133
#elif defined(Q_OS_MACOS)
134-
// In "Emulate fullscreen mode"
135-
m_captureWindow->showFullScreen();
134+
m_captureWindow->show();
136135
m_captureWindow->activateWindow();
137136
m_captureWindow->raise();
138137
#else

src/widgets/capture/capturewidget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ CaptureWidget::CaptureWidget(const CaptureRequest& req,
164164
windowHandle()->setScreen(selectedScreen);
165165
}
166166
#elif defined(Q_OS_MACOS)
167+
setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |
168+
Qt::Tool);
167169
QScreen* currentScreen = QGuiAppCurrentScreen().currentScreen();
168170
move(currentScreen->geometry().x(), currentScreen->geometry().y());
169171
resize(currentScreen->size());

0 commit comments

Comments
 (0)