[gnome-shell] [workspaceSwitcher] Display on primary monitor



commit 2ca70e9e7615a2d1f1ffc9820e4543b6ec1ae574
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Thu May 27 19:57:08 2010 +0200

    [workspaceSwitcher] Display on primary monitor
    
    Display it only on the primary monitor to be consistent with other
    elements like the appSwitcher, messageTray and the overview.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619854

 js/ui/workspaceSwitcherPopup.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js
index 20db9ef..b638d99 100644
--- a/js/ui/workspaceSwitcherPopup.js
+++ b/js/ui/workspaceSwitcherPopup.js
@@ -65,9 +65,9 @@ WorkspaceSwitcherPopup.prototype = {
     },
 
     _position: function() {
-        let focus = global.get_focus_monitor();
-        this._container.x = focus.x + Math.floor((focus.width - this._container.width) / 2);
-        this._container.y = focus.y + Math.floor((focus.height - this._container.height) / 2);
+        let primary = global.get_primary_monitor();
+        this._container.x = primary.x + Math.floor((primary.width - this._container.width) / 2);
+        this._container.y = primary.y + Math.floor((primary.height - this._container.height) / 2);
     },
 
     _show : function() {



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