mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Only use KStartupInfo on X11
This commit is contained in:
parent
5b301819fa
commit
1c393f50d5
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue