diff --git a/src/main.cpp b/src/main.cpp index d0970694d..1d21a90b4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,7 @@ #include #endif #ifdef HAVE_WINDOWSYSTEM +#include #include #endif #include @@ -78,12 +79,15 @@ using namespace Quotient; #ifdef HAVE_WINDOWSYSTEM static void raiseWindow(QWindow *window) { +#if KWINDOWSYSTEM_VERSION >= QT_VERSION_CHECK(5, 91, 0) + KWindowSystem::updateStartupId(window); +#else if (KWindowSystem::isPlatformWayland()) { KWindowSystem::setCurrentXdgActivationToken(qEnvironmentVariable("XDG_ACTIVATION_TOKEN")); - KWindowSystem::activateWindow(window->winId()); - } else { - window->raise(); } +#endif + KWindowSystem::activateWindow(window->winId()); + window->raise(); } #endif