Commits

mathematicalcoffee committed 4e7e3d5 Merge

v2.1.1 for gnome 3.4: merged in bugfixes from 2.1.1_dev

Comments (0)

Files changed (4)

 2021ebe37f878bf505533860467db4fcab337e95 v2.0_dev
 3de500c918b7769d638b6d56418b66699af4cc92 v2.0_gnome3.4
 970134bd5253556eb86c7a64c1ae66da209aaa91 v2.1_gnome3.4
+c652b5d7517497992001aec1d9c6175615961b61 v2.1_dev

xpenguins@mathematical.coffee.gmail.com/metadata.json

  "uuid": "xpenguins@mathematical.coffee.gmail.com",
  "settings-schema": "org.gnome.shell.extensions.xpenguins",
  "gettext-domain": "xpenguins",
- "name": "xpenguins",
- "description": "A port of XPenguins to gnome-shell! See extension home page for explanation of configuration options.",
+ "name": "XPenguins",
+ "description": "A port of XPenguins to gnome-shell! See extension home page for explanation of configuration options.\n\nIncludes the basic xpenguins themes, and compatible with the original xpenguins themes: more can be found from http://xpenguins.seul.org.",
  "shell-version": [ 
      "3.4"
  ],
  "url": "https://bitbucket.org/mathematicalcoffee/xpenguins-gnome-shell-extension",
  "version": 2,
- "dev-version": "2.1_gnome3.4"
+ "dev-version": "2.1.1_gnome3.4"
 }

xpenguins@mathematical.coffee.gmail.com/windowClone.js

         this._destroyID = this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
         this._onAllWorkspaces = onAllWorkspaces;
         this._startingWorkspace = global.screen.get_active_workspace();
+        this.actor._delegate = this;
 
-        if (baseWindow instanceof Meta.WindowActor) {
+        if (this.actor instanceof Meta.WindowActor) {
             this.meta_window = this.actor.meta_window;
             this.get_workspace = Lang.bind(this.meta_window,
                 this.meta_window.get_workspace);
                 }
             });
         }
-        this.actor._delegate = this;
+
+        this.refresh();
+    },
+
+    /** refreshes the functions to be in sync (in particular, update the starting
+     *  workspace in the case of the baseWindow being the desktop & us remaining
+     *  on the starting workspace).
+     **/
+    refresh: function () {
+        this._startingWorkspace = global.screen.get_active_workspace();
     },
 
     setOnAllWorkspaces: function (val) {

xpenguins@mathematical.coffee.gmail.com/xpenguins.js

          */
         if (!this._XPenguinsWindow) {
             this.setWindow(global.stage);
+        } else {
+            // refresh .get_workspace
+            this._XPenguinsWindow.refresh();
         }
 
         /* set up god mode */