[gnome-shell] Fix workspaces accumulating on each restart.
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix workspaces accumulating on each restart.
- Date: Mon, 21 Mar 2011 21:48:45 +0000 (UTC)
commit b16de0e374fd607bf1f5fbe94b236750c30514d0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Mar 19 19:36:17 2011 -0400
Fix workspaces accumulating on each restart.
Main._nWorkspacesChanged was racing with Main._checkWorkspaces.
If _checkWorkspaces won the race, _workspaces was uninitialized.
Because of this, _checkWorkspaces only noticed workspaces
with windows on them, leading it to believe the last workspace wasn't
empty, and added a new, empty workspace.
https://bugzilla.gnome.org/show_bug.cgi?id=645343
js/ui/main.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 47dadef..155cdb2 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -223,7 +223,7 @@ function start() {
global.screen.connect('window-entered-monitor', _windowEnteredMonitor);
global.screen.connect('window-left-monitor', _windowLeftMonitor);
- Mainloop.idle_add(_nWorkspacesChanged);
+ _nWorkspacesChanged();
}
let _workspaces = [];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]