From 778dcc3e5a29d3f7c3f6f538016faf9cb837e8aa Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 5 Apr 2020 10:42:00 +0300 Subject: [PATCH] fix 5.38 compatibility for wayland case --- app/wm/waylandinterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/wm/waylandinterface.cpp b/app/wm/waylandinterface.cpp index 18ce3d243..dc2500e8b 100644 --- a/app/wm/waylandinterface.cpp +++ b/app/wm/waylandinterface.cpp @@ -791,8 +791,12 @@ bool WaylandInterface::isAcceptableWindow(const KWayland::Client::PlasmaWindow * //! Window Checks bool hasSkipTaskbar = w->skipTaskbar(); + bool isSkipped = hasSkipTaskbar; + +#if KF5_VERSION_MINOR >= 47 bool hasSkipSwitcher = w->skipSwitcher(); - bool isSkipped = hasSkipTaskbar && hasSkipSwitcher; + isSkipped = hasSkipTaskbar && hasSkipSwitcher; +#endif if (isSkipped && ((w->appId() == QLatin1String("yakuake")