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:
parent
5d09eaae1f
commit
e0c3b4eed3
1 changed files with 20 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue