[gnome-shell-extensions] auto-move-windows: Take workspaces in startup sequences into account



commit c0053933980ab817121b0129723df8130f574051
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Apr 24 12:49:31 2014 +0200

    auto-move-windows: Take workspaces in startup sequences into account
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=664202 for the
    corresponding patch in core shell.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728865

 extensions/auto-move-windows/extension.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js
index df2a88f..a0f26de 100644
--- a/extensions/auto-move-windows/extension.js
+++ b/extensions/auto-move-windows/extension.js
@@ -108,6 +108,13 @@ function myCheckWorkspaces() {
             emptyWorkspaces[i] = true;
     }
 
+    let sequences = Shell.WindowTracker.get_default().get_startup_sequences();
+    for (i = 0; i < sequences.length; i++) {
+        let index = sequences[i].get_workspace();
+        if (index >= 0 && index <= global.screen.n_workspaces)
+            emptyWorkspaces[index] = false;
+    }
+
     let windows = global.get_window_actors();
     for (i = 0; i < windows.length; i++) {
        let winActor = windows[i];


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