summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <[email protected]>2016-09-27 20:35:49 +0900
committerEike Hein <[email protected]>2016-09-27 20:35:49 +0900
commit8fdb56598341a6d5a0f542f240d136522367554c (patch)
treeb35f8ccc50d0c6df00dae43c2ad7ed248f4a6c6d
parentb969f03eaeb1785657234563ee7bcd911c70cc07 (diff)
KWindowSystem knows how to unminimize, activate() does not.
REVIEW:129046
-rw-r--r--app/SystemSettingsApp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/SystemSettingsApp.cpp b/app/SystemSettingsApp.cpp
index e9f43d8..acc5a79 100644
--- a/app/SystemSettingsApp.cpp
+++ b/app/SystemSettingsApp.cpp
@@ -19,6 +19,7 @@
#include "SystemSettingsApp.h"
#include <kdbusservice.h>
+#include <KWindowSystem>
SystemSettingsApp::SystemSettingsApp(int& argc, char* argv[])
: QApplication(argc, argv)
@@ -27,7 +28,7 @@ SystemSettingsApp::SystemSettingsApp(int& argc, char* argv[])
setOrganizationDomain("kde.org");
KDBusService* service = new KDBusService(KDBusService::Unique, this);
QObject::connect(service, &KDBusService::activateRequested, this, [=]() {
- window->activateWindow();
+ KWindowSystem::forceActiveWindow(window->winId());
} );
}