diff --git a/src/Platforms/PlatformKWinWayland.cpp b/src/Platforms/PlatformKWinWayland.cpp --- a/src/Platforms/PlatformKWinWayland.cpp +++ b/src/Platforms/PlatformKWinWayland.cpp @@ -93,16 +93,11 @@ Platform::ShutterModes PlatformKWinWayland::supportedShutterModes() const { - return { ShutterMode::OnClick }; + return { ShutterMode::Immediate | ShutterMode::OnClick }; } void PlatformKWinWayland::doGrab(ShutterMode theShutterMode, GrabMode theGrabMode, bool theIncludePointer, bool theIncludeDecorations) { - if (theShutterMode != ShutterMode::OnClick) { - emit newScreenshotFailed(); - return; - } - switch(theGrabMode) { case GrabMode::AllScreens: { doGrabHelper(QStringLiteral("screenshotFullscreen"), theIncludePointer);