diff --git a/effects/morphingpopups/package/contents/code/morphingpopups.js b/effects/morphingpopups/package/contents/code/morphingpopups.js --- a/effects/morphingpopups/package/contents/code/morphingpopups.js +++ b/effects/morphingpopups/package/contents/code/morphingpopups.js @@ -26,7 +26,7 @@ morphingEffect.duration = animationTime(150); }, - geometryChange: function (window, oldGeometry) { + handleFrameGeometryChanged: function (window, oldGeometry) { //only tooltips and notifications if (!window.tooltip && !window.notification && !window.criticalNotification) { return; @@ -38,13 +38,6 @@ //don't cross the whole screen: ugly var distance = Math.abs(oldGeometry.x - newGeometry.x) + Math.abs(oldGeometry.y - newGeometry.y); - if (newGeometry.x == oldGeometry.x && - newGeometry.y == oldGeometry.y && - newGeometry.width == oldGeometry.width && - newGeometry.height == oldGeometry.height) { - return; - } - if (distance > (newGeometry.width + newGeometry.height) * 2) { if (window.moveAnimation) { delete window.moveAnimation; @@ -137,7 +130,7 @@ init: function () { effect.configChanged.connect(morphingEffect.loadConfig); - effects.windowGeometryShapeChanged.connect(morphingEffect.geometryChange); + effects.windowFrameGeometryChanged.connect(morphingEffect.handleFrameGeometryChanged); } }; morphingEffect.init();