Merge branch 'Plasma/5.14'

This commit is contained in:
Vlad Zagorodniy 2018-10-30 22:39:29 +02:00
commit bdcd42d858

View file

@ -1392,8 +1392,31 @@ bool DesktopGridEffect::isActive() const
bool DesktopGridEffect::isRelevantWithPresentWindows(EffectWindow *w) const
{
return !(w->isDesktop() || w->isDock() || w->isSkipSwitcher() || w->isOnScreenDisplay()) &&
w->isCurrentTab() && w->isOnCurrentActivity();
if (w->isSpecialWindow() || w->isUtility()) {
return false;
}
if (w->isSkipSwitcher()) {
return false;
}
if (w->isDeleted()) {
return false;
}
if (!w->acceptsFocus()) {
return false;
}
if (!w->isCurrentTab()) {
return false;
}
if (!w->isOnCurrentActivity()) {
return false;
}
return true;
}
/************************************************