[education/rkward/kf5] rkward/misc: fixup! Fix compilation error from windows
Thomas Friedrichsmeier
null at kde.org
Wed Apr 10 16:12:08 BST 2024
Git commit 6670de5b11f786b6745182097451da4f13656d0d by Thomas Friedrichsmeier, on behalf of Carl Schwan.
Committed on 01/04/2024 at 11:45.
Pushed by tfry into branch 'kf5'.
fixup! Fix compilation error from windows
M +4 -0 rkward/misc/rkdbusapi.cpp
https://invent.kde.org/education/rkward/-/commit/6670de5b11f786b6745182097451da4f13656d0d
diff --git a/rkward/misc/rkdbusapi.cpp b/rkward/misc/rkdbusapi.cpp
index bead200e1..a3480b4b1 100644
--- a/rkward/misc/rkdbusapi.cpp
+++ b/rkward/misc/rkdbusapi.cpp
@@ -9,7 +9,9 @@ SPDX-License-Identifier: GPL-2.0-or-later
#include <QDBusConnection>
#include <KWindowSystem>
+#if __has_include(<KStartupInfo>)
#include <KStartupInfo>
+#endif
#include "../rkward.h"
#include "../debug.h"
@@ -40,7 +42,9 @@ void RKDBusAPI::openAnyUrl (const QStringList& urls, const QString &token, bool
main->raise();
if (KWindowSystem::isPlatformX11()) {
+#if __has_include(<KStartupInfo>)
KStartupInfo::setNewStartupId(main->windowHandle(), token.toUtf8());
+#endif
} else if (KWindowSystem::isPlatformWayland()) {
KWindowSystem::setCurrentXdgActivationToken(token);
}
More information about the rkward-tracker
mailing list