From 5e84fffd6ed97a173d7250e7563998ea5dc395a0 Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Fri, 20 Aug 2021 12:31:36 +0300 Subject: DBus activation with filemanager iface In Dolphin on wayland currently, if you right clicks a file and create a zip file from it, Dolphin makes a new window. What we want to happen is Dolphin to focus the window we have with the file selected. This patches Dolphin's dbusinterface.cpp to call KWindowSystem::setCurrentXdgActivationToken() with the startupID --- src/global.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/global.cpp') diff --git a/src/global.cpp b/src/global.cpp index d217a67ec..e81b7d34d 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -62,8 +62,7 @@ bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFi { bool attached = false; - // TODO: once Wayland clients can raise or activate themselves remove check from conditional - if (KWindowSystem::isPlatformWayland() || inputUrls.isEmpty() || !GeneralSettings::openExternallyCalledFolderInNewTab()) { + if (inputUrls.isEmpty() || !GeneralSettings::openExternallyCalledFolderInNewTab()) { return false; } -- cgit v1.3