[gnome-shell] workspaces-view: Set geometry on new workspaces
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspaces-view: Set geometry on new workspaces
- Date: Fri, 3 Jun 2011 17:57:56 +0000 (UTC)
commit 2021edd1fb886d851015e382aca56b30db68479c
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jun 1 14:47:51 2011 +0200
workspaces-view: Set geometry on new workspaces
Currently the workspace geometry is updated on zoom/allocation
changes, which means that newly added workspaces use their initial
geometry of (0, 0, 0, 0) until the next zoom change. As a result,
windows on the affected workspaces are mispositioned, e.g. placed
outside the workspace area. To fix, set the geometry on newly added
workspaces to the view's cached values.
https://bugzilla.gnome.org/show_bug.cgi?id=649001
js/ui/workspacesView.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 05358a1..573a1b8 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -275,8 +275,11 @@ WorkspacesView.prototype = {
});
if (newNumWorkspaces > oldNumWorkspaces) {
- for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++)
+ for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) {
+ this._workspaces[w].setGeometry(this._x, this._y,
+ this._width, this._height);
this.actor.add_actor(this._workspaces[w].actor);
+ }
this._updateWorkspaceActors(false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]