diff options
authorMartin Gräßlin <[email protected]>2017-04-15 11:59:45 +0200
committerMartin Gräßlin <[email protected]>2017-04-20 17:03:12 +0200
commit919b497f9020a4be49c66d7e07f8a15aced317f0 (patch)
parent9a13743c4988fbf653e20df43e919e836766d3c8 (diff)
[effects/slideback] Consider windows which do have painting disabled as not usable
Summary: On Wayland it can happen that a window is still in the stacking order although it is not visible. This is mostly the case for Plasma windows. So far the slideback effect did not ignore those windows and as they are higher in the stacking order than most other windows it blocked the effect from working once a Plasma panel element got closed. This change considers a window which has painting disabled in the stacking order as not usable and thus filters out all those windows. BUG: 364483 Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D5462
1 files changed, 1 insertions, 1 deletions
diff --git a/effects/slideback/slideback.cpp b/effects/slideback/slideback.cpp
index 97400bc..e7313c0 100644
--- a/effects/slideback/slideback.cpp
+++ b/effects/slideback/slideback.cpp
@@ -295,7 +295,7 @@ void SlideBackEffect::slotTabBoxClosed()
bool SlideBackEffect::isWindowUsable(EffectWindow* w)
return w && (w->isNormalWindow() || w->isDialog()) && !w->keepAbove() && !w->isDeleted() && !w->isMinimized()
- && w->isCurrentTab();
+ && w->isCurrentTab() && w->isPaintingEnabled();
bool SlideBackEffect::intersects(EffectWindow* windowUnder, const QRect &windowOverGeometry)