summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch11
-rw-r--r--app-backup/kfoldersync/kfoldersync-3.4.1.ebuild4
2 files changed, 14 insertions, 1 deletions
diff --git a/app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch b/app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch
new file mode 100644
index 000000000000..f83c0e5b23c0
--- /dev/null
+++ b/app-backup/kfoldersync/files/kfoldersync-3.4.1-kwindowsystem-5.82.patch
@@ -0,0 +1,11 @@
+--- a/src/kfoldersync.cxx 2017-01-24 10:27:17.000000000 +0100
++++ b/src/kfoldersync.cxx 2021-05-08 23:52:28.891166974 +0200
+@@ -173,7 +173,7 @@
+ {
+ // Connect to dbus (keep it without parent to avoid potential SIGABRT)
+ static const KDBusService dbus_service(KDBusService::Unique);
+- connect(&dbus_service, &KDBusService::activateRequested, this, [&]{KStartupInfo::setNewStartupId(this, KStartupInfo::startupId()); KWindowSystem::forceActiveWindow(winId());}, Qt::DirectConnection);
++ connect(&dbus_service, &KDBusService::activateRequested, this, [&]{KStartupInfo::setNewStartupId(this->window()->windowHandle(), KStartupInfo::startupId()); KWindowSystem::forceActiveWindow(winId());}, Qt::DirectConnection);
+
+ // Setup toolbar
+ QMenu * const app_menu = new QMenu(this);
diff --git a/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild b/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild
index 252fea2b53ce..5de0a6109900 100644
--- a/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild
+++ b/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -34,3 +34,5 @@ DEPEND="
>=kde-frameworks/kxmlgui-${KFMIN}:5
"
RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-kwindowsystem-5.82.patch" ) # downstream patch