summaryrefslogtreecommitdiff
path: root/user/spectacle/no-wayland.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/spectacle/no-wayland.patch')
-rw-r--r--user/spectacle/no-wayland.patch22
1 files changed, 10 insertions, 12 deletions
diff --git a/user/spectacle/no-wayland.patch b/user/spectacle/no-wayland.patch
index 50c7cc8b7..300c50b8d 100644
--- a/user/spectacle/no-wayland.patch
+++ b/user/spectacle/no-wayland.patch
@@ -119,17 +119,16 @@ index 7024750..40417bb 100644
#include <KWindowSystem>
#include <QApplication>
-@@ -54,8 +51,7 @@ SpectacleCore::SpectacleCore(StartMode theStartMode,
- mPlatform(loadPlatform()),
+@@ -46,7 +46,6 @@
+ QObject(parent),
mMainWindow(nullptr),
- mIsGuiInited(false),
-- mCopyToClipboard(theCopyToClipboard),
+- mIsGuiInited(false),
- mWaylandPlasmashell(nullptr)
-+ mCopyToClipboard(theCopyToClipboard)
++ mIsGuiInited(false)
{
- auto lConfig = KSharedConfig::openConfig(QStringLiteral("spectaclerc"));
- KConfigGroup lGuiConfig(lConfig, "GuiConfig");
-@@ -92,24 +88,6 @@ SpectacleCore::SpectacleCore(StartMode theStartMode,
+ }
+
+@@ -66,23 +65,6 @@
connect(lExportManager, &ExportManager::forceNotify, this, &SpectacleCore::doNotify);
connect(mPlatform.get(), &Platform::windowTitleChanged, lExportManager, &ExportManager::setWindowTitle);
@@ -150,10 +149,9 @@ index 7024750..40417bb 100644
- registry->setup();
- connection->roundtrip();
- }
--
- switch (theStartMode) {
- case StartMode::DBus:
- break;
+ setUpShortcuts();
+ }
+
@@ -245,7 +223,7 @@ void SpectacleCore::screenshotUpdated(const QPixmap &thePixmap)
if (lExportManager->captureMode() == Spectacle::CaptureMode::RectangularRegion) {