Group :: Desktop gráfico/KDE
RPM: kde5-spectacle
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: alt-def-capture-mode.patch
Download
Download
--- a/src/SpectacleCore.cpp
+++ b/src/SpectacleCore.cpp
@@ -557,5 +557,10 @@ void SpectacleCore::initGui(int theDelay
mIsGuiInited = true;
}
- takeNewScreenshot(ExportManager::instance()->captureMode(), theDelay, theIncludePointer, theIncludeDecorations);
+ Spectacle::CaptureMode capture_mode = ExportManager::instance()->captureMode();
+ if (!mPlatform->supportedShutterModes().testFlag(Platform::ShutterMode::OnClick)) {
+ theDelay = 0;
+ capture_mode = Spectacle::CaptureMode::WindowUnderCursor;
+ }
+ takeNewScreenshot(capture_mode, theDelay, theIncludePointer, theIncludeDecorations);
}