[gnome-shell/gnome-3-8] layout: Use monitor index when adding bg managers
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] layout: Use monitor index when adding bg managers
- Date: Wed, 2 Oct 2013 13:59:40 +0000 (UTC)
commit ac478727cc8cc9baebc27abf7e37ab94f04eeaa2
Author: Adel Gadllah <adel gadllah gmail com>
Date: Wed Oct 2 15:48:39 2013 +0200
layout: Use monitor index when adding bg managers
Don't assume that this._bgManagers.push() (i.e adding to the end) is always
correct.
On startup we call _createPrimaryBackground which passes in the primary index
which may not be 0.
js/ui/layout.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index e25b3bd..141eecc 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -347,7 +347,7 @@ const LayoutManager = new Lang.Class({
BackgroundMenu.addBackgroundMenu(bgManager.background.actor);
}));
- this._bgManagers.push(bgManager);
+ this._bgManagers[monitorIndex] = bgManager;
return bgManager.background;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]