Commit 0ca0b4f6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix activating running instance on Wayland

parent 0c06e25d
Pipeline #175628 passed with stage
in 1 minute and 19 seconds
......@@ -18,6 +18,7 @@
#include <KDBusService>
#include <KDeclarative/KDeclarative>
#include <KLocalizedString>
#include <KWindowSystem>
#include "Configuration.h"
#include "ToolsModel.h"
......@@ -148,8 +149,8 @@ int main(int argc, char **argv)
QObject::connect(&service, &KDBusService::activateRequested, &engine, []() {
if (!qApp->topLevelWindows().isEmpty()) {
QWindow *win = qApp->topLevelWindows().first();
win->raise();
win->requestActivate();
KWindowSystem::updateStartupId(win);
KWindowSystem::activateWindow(win);
}
});
// QDBusConnectionInterface::StartService is blocking so we do it manually
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment