bind desktopPresenceChanged in scripted effects

translucency and dialogparent

BUG: 326903
FIXED-IN: 4.11.6
REVIEW: 114083
icc-effect-5.14.5
Thomas Lübking 2013-11-17 21:43:38 +01:00
parent c378bf4f7c
commit fac85516ad
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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);