diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp --- a/src/Gui/KSMainWindow.cpp +++ b/src/Gui/KSMainWindow.cpp @@ -273,6 +273,12 @@ // slots void KSMainWindow::captureScreenshot(Spectacle::CaptureMode theCaptureMode, int theTimeout, bool theIncludePointer, bool theIncludeDecorations) { + if (theTimeout < 0) { // OnClick is checked (always the case on Wayland) + hide(); + emit newScreenshotRequest(theCaptureMode, theTimeout, theIncludePointer, theIncludeDecorations); + return; + } + showMinimized(); mMessageWidget->hide(); QTimer* timer = new QTimer;