Exclude minimized and windows not on current desktop from fade desktop

BUG: 299429
FIXED-IN: 4.9.0
This commit is contained in:
Martin Gräßlin 2012-05-06 19:51:56 +02:00
parent 151b8835f5
commit b3a813ffa7

View file

@ -33,6 +33,12 @@ effects['desktopChanged(int,int)'].connect(function(oldDesktop, newDesktop) {
if (w.desktop != oldDesktop && w.desktop != newDesktop) {
continue;
}
if (w.minimized) {
continue;
}
if (!w.isOnActivity(currentActivity)){
continue;
}
if (w.desktop == oldDesktop) {
effect.animate(w, Effect.Opacity, duration, 0.0);
} else {