diff options
| author | Nicolas Fella <[email protected]> | 2023-05-31 14:13:19 +0200 |
|---|---|---|
| committer | Nicolas Fella <[email protected]> | 2023-05-31 12:43:57 +0000 |
| commit | 1c393f50d5dc2e843962e17d0e8c144f019e1da2 (patch) | |
| tree | fa13f2fb7236001d84275705a421939871a5d651 /src | |
| parent | 5b301819faca3a517256faa8de831b87e0df545b (diff) | |
Only use KStartupInfo on X11
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index ef8f9770f..a03655f5a 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -54,7 +54,6 @@ #include <KShell> #include <KShortcutsDialog> #include <KStandardAction> -#include <KStartupInfo> #include <KSycoca> #include <KTerminalLauncherJob> #include <KToggleAction> @@ -84,6 +83,10 @@ #include <algorithm> +#if HAVE_X11 +#include <KStartupInfo> +#endif + namespace { // Used for GeneralSettings::version() to determine whether @@ -305,8 +308,10 @@ void DolphinMainWindow::activateWindow(const QString &activationToken) if (KWindowSystem::isPlatformWayland()) { KWindowSystem::setCurrentXdgActivationToken(activationToken); - } else { + } else if (KWindowSystem::isPlatformX11()) { +#if HAVE_X11 KStartupInfo::setNewStartupId(window()->windowHandle(), activationToken.toUtf8()); +#endif } KWindowSystem::activateWindow(window()->windowHandle()); |
