1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-27 14:50:21 +03:00

fix 5.38 compatibility for wayland case

FIXED-IN:0.9.11
BUG:419657
This commit is contained in:
Michail Vourlakos 2020-04-05 10:37:41 +03:00
parent 40c034537f
commit c6a83937fa

View File

@ -688,9 +688,12 @@ bool WaylandInterface::isValidWindow(const KWayland::Client::PlasmaWindow *w) co
//! the dodge views appropriately
bool hasSkipTaskbar = w->skipTaskbar();
bool hasSkipSwitcher = w->skipSwitcher();
bool isSkipped = hasSkipTaskbar;
bool isSkipped = hasSkipTaskbar && hasSkipSwitcher;
#if KF5_VERSION_MINOR >= 47
bool hasSkipSwitcher = w->skipSwitcher();
isSkipped = hasSkipTaskbar && hasSkipSwitcher;
#endif
return w->isValid() && !isPlasmaDesktop(w) && !isSkipped && !m_plasmaPanels.contains(w->internalId()) && !m_ignoredWindows.contains(w->internalId());
}