gnome-shell r170 - trunk/js/ui



Author: danw
Date: Thu Jan 29 21:20:37 2009
New Revision: 170
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=170&view=rev

Log:
Two dragging-related fixes
 
    - Don't let the user grab a moving window or we'll get dueling tweens.
    - Update _overlappedMode each time _positionWindows is called


Modified:
   trunk/js/ui/workspaces.js

Modified: trunk/js/ui/workspaces.js
==============================================================================
--- trunk/js/ui/workspaces.js	(original)
+++ trunk/js/ui/workspaces.js	Thu Jan 29 21:20:37 2009
@@ -90,7 +90,6 @@
             }
         }
 
-        this._overlappedMode = !((this._windows.length-1) in POSITIONS);
         this._removeButton = null;
         this._visible = false;
 
@@ -203,6 +202,7 @@
     _positionWindows : function(workspaceZooming) {
         let global = Shell.Global.get();
 
+        this._overlappedMode = !((this._windows.length-1) in POSITIONS);
         for (let i = 1; i < this._windows.length; i++) {
             let clone = this._windows[i];
 
@@ -515,6 +515,9 @@
     },
 
     _onCloneButtonPress : function (clone, event) {
+        if (clone._animationCount)
+            return;
+
         this.actor.raise_top();
         clone.raise_top();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]