Commit b9413add authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix activating running instance on Wayland

parent 1f1876c7
Pipeline #177579 passed with stage
in 5 minutes and 11 seconds
......@@ -9,7 +9,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(kget VERSION ${RELEASE_SERVICE_VERSION})
set(REQUIRED_QT_VERSION "5.15.0")
set(KF5_VERSION "5.90.0")
set(KF5_VERSION "5.91.0")
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
......
......@@ -14,7 +14,6 @@
#include <Kdelibs4ConfigMigrator>
#include <Kdelibs4Migration>
#include <KLocalizedString>
#include <KStartupInfo>
#include <KWindowSystem>
#include <QCommandLineParser>
......@@ -58,8 +57,8 @@ public:
} else {
// activate window if it is already open
kget->setAttribute(Qt::WA_NativeWindow, true);
KStartupInfo::setNewStartupId(kget->windowHandle(), KStartupInfo::startupId());
KWindowSystem::forceActiveWindow(kget->winId());
KWindowSystem::updateStartupId(kget->windowHandle());
KWindowSystem::activateWindow(kget->windowHandle());
}
if (parser->isSet("showDropTarget"))
......
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