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

svn path=/trunk/; revision=170
This commit is contained in:
Dan Winship 2009-01-29 21:20:37 +00:00
parent a80c18bc4e
commit 54337ee6a9

View File

@ -90,7 +90,6 @@ Workspace.prototype = {
} }
} }
this._overlappedMode = !((this._windows.length-1) in POSITIONS);
this._removeButton = null; this._removeButton = null;
this._visible = false; this._visible = false;
@ -203,6 +202,7 @@ Workspace.prototype = {
_positionWindows : function(workspaceZooming) { _positionWindows : function(workspaceZooming) {
let global = Shell.Global.get(); let global = Shell.Global.get();
this._overlappedMode = !((this._windows.length-1) in POSITIONS);
for (let i = 1; i < this._windows.length; i++) { for (let i = 1; i < this._windows.length; i++) {
let clone = this._windows[i]; let clone = this._windows[i];
@ -515,6 +515,9 @@ Workspace.prototype = {
}, },
_onCloneButtonPress : function (clone, event) { _onCloneButtonPress : function (clone, event) {
if (clone._animationCount)
return;
this.actor.raise_top(); this.actor.raise_top();
clone.raise_top(); clone.raise_top();