[gnome-shell] panel: Fix corner positions for multi-monitors



commit fb800f3d8bc5467e3b2042358b09f6aa6c7be12b
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 21 19:06:07 2011 +0100

    panel: Fix corner positions for multi-monitors
    
    The corner positions were only based on the panel's dimensions, its
    position needs to be taken into account as well.

 js/ui/panel.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index f45af43..1c23ae8 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -632,9 +632,11 @@ PanelCorner.prototype = {
         this.actor.set_size(cornerRadius,
                             innerBorderWidth + outerBorderWidth + cornerRadius);
         if (this._side == St.Side.LEFT)
-            this.actor.set_position(0, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
+            this.actor.set_position(Main.panel.actor.x,
+                                    Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
         else
-            this.actor.set_position(Main.panel.actor.width - cornerRadius, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
+            this.actor.set_position(Main.panel.actor.x + Main.panel.actor.width - cornerRadius,
+                                    Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
     }
 };
 



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