[gnome-shell] WorkspacesView: set the actual geometry when creating workspaces



commit a9058e471c98841c7772784d4a165dc2ddc80288
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Apr 27 14:11:14 2013 +0200

    WorkspacesView: set the actual geometry when creating workspaces
    
    If we created a workspace after showing the view, we would never
    set the geometry on it, which would cause an exception in the
    window layout code and leave the DND state tracking in an undefined
    state.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699029

 js/ui/workspacesView.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 5c97e9c..2f47308 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -297,6 +297,8 @@ const WorkspacesView = new Lang.Class({
         if (newNumWorkspaces > oldNumWorkspaces) {
             for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) {
                 this._workspaces[w].setFullGeometry(this._fullGeometry);
+                if (this._actualGeometry)
+                    this._workspaces[w].setActualGeometry(this._actualGeometry);
                 this.actor.add_actor(this._workspaces[w].actor);
             }
 


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