window aperture always needs to cancel

even if the window is invisible
fade out instead of NOOP or "restorage"

BUG: 347174
REVIEW: 123636
This commit is contained in:
Thomas Lübking 2015-05-05 00:03:06 +02:00
parent 5d09eaae1f
commit e0c3b4eed3

View file

@ -39,7 +39,26 @@ var badBadWindowsEffect = {
break;
// ignore invisible windows and such that do not have to be restored
if (!w.visible || (!showing && w.offToCornerId === undefined)) {
if (!w.visible) {
if (!(showing || w.offToCornerId === undefined)) { // we still need to stop this
cancel(w.offToCornerId);
delete w.offToCornerId;
effects.setElevatedWindow(w, false);
if (!w.dock) {
animate({
window: w,
duration: badBadWindowsEffect.duration,
animations: [{
type: Effect.Opacity,
from: 0.2,
to: 0.0
}]
});
}
}
continue;
}
if (!showing && w.offToCornerId === undefined) {
continue;
}