bind desktopPresenceChanged in scripted effects
translucency and dialogparent BUG: 326903 FIXED-IN: 4.11.6 REVIEW: 114083
This commit is contained in:
parent
c378bf4f7c
commit
fac85516ad
2 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,7 @@ var dialogParentEffect = {
|
|||
windows = effects.stackingOrder;
|
||||
for (i = 0; i < windows.length; i += 1) {
|
||||
window = windows[i];
|
||||
dialogParentEffect.cancelAnimation(window);
|
||||
dialogParentEffect.cancelAnimation(window);
|
||||
dialogParentEffect.restartAnimation(window);
|
||||
}
|
||||
},
|
||||
|
@ -131,6 +131,8 @@ var dialogParentEffect = {
|
|||
effects.windowUnminimized.connect(dialogParentEffect.restartAnimation);
|
||||
effects.windowModalityChanged.connect(dialogParentEffect.modalDialogChanged)
|
||||
effects['desktopChanged(int,int)'].connect(dialogParentEffect.desktopChanged);
|
||||
effects.desktopPresenceChanged.connect(dialogParentEffect.cancelAnimation);
|
||||
effects.desktopPresenceChanged.connect(dialogParentEffect.restartAnimation);
|
||||
|
||||
// start animation
|
||||
windows = effects.stackingOrder;
|
||||
|
|
|
@ -239,6 +239,8 @@ var translucencyEffect = {
|
|||
init: function () {
|
||||
"use strict";
|
||||
effect.configChanged.connect(translucencyEffect.loadConfig);
|
||||
effects.desktopPresenceChanged.connect(translucencyEffect.cancelAnimations);
|
||||
effects.desktopPresenceChanged.connect(translucencyEffect.startAnimation);
|
||||
effects.windowAdded.connect(translucencyEffect.startAnimation);
|
||||
effects.windowUnminimized.connect(translucencyEffect.startAnimation);
|
||||
effects.windowClosed.connect(translucencyEffect.cancelAnimations);
|
||||
|
|
Loading…
Reference in a new issue