[gnome-shell] Fix overview sizing when exiting via thumbnails



commit f84c62f0be4f73edfa6dbab205eb0b67cb413749
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Mar 22 12:46:56 2011 +0100

    Fix overview sizing when exiting via thumbnails
    
    We need to update WorkspacesView._ZoomOut before calling
    _updateWorkspacesGeometry() in show(), as otherwise the old
    value is kept. This was a problem if we previously left the
    overview zoomed out.

 js/ui/workspacesView.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index f791f9f..567f90a 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -619,6 +619,10 @@ WorkspacesDisplay.prototype = {
     },
 
    show: function() {
+        this._zoomOut = this._alwaysZoomOut;
+        this._zoomFraction = this._alwaysZoomOut ? 1 : 0;
+        this._updateZoom();
+
         this._controls.show();
         this._thumbnailsBox.show();
 
@@ -661,9 +665,6 @@ WorkspacesDisplay.prototype = {
                                                           Lang.bind(this, this._dragEnd));
 
         this._onRestacked();
-        this._zoomOut = this._alwaysZoomOut;
-        this._zoomFraction = this._alwaysZoomOut ? 1 : 0;
-        this._updateZoom();
     },
 
     hide: function() {



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