[gnome-shell] [windowmanager] Remove destroy effect
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [windowmanager] Remove destroy effect
- Date: Mon, 28 Sep 2009 13:58:05 +0000 (UTC)
commit 9432ddb12e91d47f0d94e7c288cde2ab2cc5d009
Author: Dan Winship <danw gnome org>
Date: Sat Sep 26 17:32:22 2009 -0400
[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 files changed, 1 insertions(+), 32 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 4251e09..c01a510 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]