From 9432ddb12e91d47f0d94e7c288cde2ab2cc5d009 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 26 Sep 2009 17:32:22 -0400 Subject: [PATCH] [windowmanager] Remove destroy effect It slows things down, it's a slightly weird effect, and because the window is still live while it's animating, you may see subwindows being destroyed during the animation. https://bugzilla.gnome.org/show_bug.cgi?id=596441 --- js/ui/windowManager.js | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 4251e098d..c01a510ee 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -163,41 +163,10 @@ WindowManager.prototype = { }, _destroyWindow : function(shellwm, actor) { - if (!this._shouldAnimate(actor)) { - shellwm.completed_destroy(actor); - return; - } - - actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER); - - /* anachronistic 'tv-like' effect - squash on y axis, leave x alone */ - this._destroying.push(actor); - Tweener.addTween(actor, - { scale_x: 1.0, - scale_y: 0.0, - time: WINDOW_ANIMATION_TIME, - transition: "easeOutQuad", - onComplete: this._destroyWindowDone, - onCompleteScope: this, - onCompleteParams: [shellwm, actor], - onOverwrite: this._destroyWindowOverwrite, - onOverwriteScope: this, - onOverwriteParams: [shellwm, actor] - }); + shellwm.completed_destroy(actor); }, _destroyWindowDone : function(shellwm, actor) { - if (this._removeEffect(this._destroying, actor)) { - shellwm.completed_destroy(actor); - Tweener.removeTweens(actor); - actor.set_scale(1.0, 1.0); - } - }, - - _destroyWindowOverwrite : function(shellwm, actor) { - if (this._removeEffect(this._destroying, actor)) { - shellwm.completed_destroy(actor); - } }, _switchWorkspace : function(shellwm, from, to, direction) {