[gnome-shell/wip/rewindow: 10/10] workspace: Refactor code a bit



commit 5ca67cafa843f38e588ea7d62e76ed72779d0218
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Aug 8 18:42:13 2012 -0300

    workspace: Refactor code a bit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=582650

 js/ui/workspace.js |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 862828f..0794818 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -988,15 +988,11 @@ const Workspace = new Lang.Class({
             return;
 
         if (clone && this.containsMetaWindow(clone.metaWindow)) {
-            this._reservedSlot = null;
+            clone = null;
             this.positionWindows(WindowPositionFlags.ANIMATE);
-            return;
         }
-        if (clone)
-            this._reservedSlot = clone;
-        else
-            this._reservedSlot = null;
 
+        this._reservedSlot = clone;
         this._currentLayout = null;
         this.positionWindows(WindowPositionFlags.ANIMATE);
     },



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