[gnome-shell/wip/rewindow: 4/10] workspace: Make sure to hide other workspace when returning from the overview



commit f5bb74222587ad760a0df20b1ac85a261c17b726
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Aug 9 14:29:17 2012 -0300

    workspace: Make sure to hide other workspace when returning from the overview
    
    https://bugzilla.gnome.org/show_bug.cgi?id=582650

 js/ui/workspace.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index cff9a42..55977f6 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1330,8 +1330,11 @@ const Workspace = new Lang.Class({
         this._overviewHiddenId = Main.overview.connect('hidden', Lang.bind(this,
                                                                            this._doneLeavingOverview));
 
-        if (this.metaWorkspace != null && this.metaWorkspace != currentWorkspace)
+        if (this.metaWorkspace != null && this.metaWorkspace != currentWorkspace) {
+            // If we're not zooming out, save some time and destroy us now.
+            this.destroy();
             return;
+        }
 
         // Position and scale the windows.
         for (let i = 0; i < this._windows.length; i++) {



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