From a9058e471c98841c7772784d4a165dc2ddc80288 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sat, 27 Apr 2013 14:11:14 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 5c97e9c73..2f4730873 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); }