Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37913470
en ru br
ALT Linux repositórios
S:23.04.3-alt1

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


--- 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);
 }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009