[gnome-shell-extensions] auto-move-windows: Never remove the active workspace



commit 80f49c2ed737fde6289a8d8bcffd48f65d30883a
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Apr 24 12:55:47 2014 +0200

    auto-move-windows: Never remove the active workspace
    
    Follow core shell in never removing the active workspace.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728865

 extensions/auto-move-windows/extension.js |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js
index 4549ebb..e4c7fca 100644
--- a/extensions/auto-move-windows/extension.js
+++ b/extensions/auto-move-windows/extension.js
@@ -133,13 +133,7 @@ function myCheckWorkspaces() {
     }
 
     let activeWorkspaceIndex = global.screen.get_active_workspace_index();
-    let activeIsLast = activeWorkspaceIndex == global.screen.n_workspaces - 2;
-    let removingTrailWorkspaces = (emptyWorkspaces[activeWorkspaceIndex] &&
-                                   activeIsLast);
-    if (removingTrailWorkspaces) {
-        // "Merge" the empty workspace we are removing with the one at the end
-        this._wm.blockAnimations();
-    }
+    emptyWorkspaces[activeWorkspaceIndex] = false;
 
     // Delete other empty workspaces; do it from the end to avoid index changes
     for (i = emptyWorkspaces.length - 2; i >= 0; i--) {
@@ -149,12 +143,6 @@ function myCheckWorkspaces() {
             break;
     }
 
-    if (removingTrailWorkspaces) {
-        global.screen.get_workspace_by_index(global.screen.n_workspaces - 
1).activate(global.get_current_time());
-
-        this._wm.unblockAnimations();
-    }
-
     this._checkWorkspacesId = 0;
     return false;
 }


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