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