[gnome-shell] ctrlAltTab: fix popup's allocation when primary.x != 0



commit a6ee6739e0bc53e7c2603925cded6696b2a19ce7
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Nov 4 18:14:36 2011 +0000

    ctrlAltTab: fix popup's allocation when primary.x != 0
    
    As in commit 3944df1bd24b7295180d33dba9ee7d531c1dddd4 but for ctrlAltTab's
    popup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662502

 js/ui/ctrlAltTab.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js
index 64b029d..86ff4ec 100644
--- a/js/ui/ctrlAltTab.js
+++ b/js/ui/ctrlAltTab.js
@@ -187,7 +187,7 @@ CtrlAltTabPopup.prototype = {
         let [childMinHeight, childNaturalHeight] = this._switcher.actor.get_preferred_height(primary.width - hPadding);
         let [childMinWidth, childNaturalWidth] = this._switcher.actor.get_preferred_width(childNaturalHeight);
         childBox.x1 = Math.max(primary.x + leftPadding, primary.x + Math.floor((primary.width - childNaturalWidth) / 2));
-        childBox.x2 = Math.min(primary.width - hPadding, childBox.x1 + childNaturalWidth);
+        childBox.x2 = Math.min(primary.x + primary.width - hPadding, childBox.x1 + childNaturalWidth);
         childBox.y1 = primary.y + Math.floor((primary.height - childNaturalHeight) / 2);
         childBox.y2 = childBox.y1 + childNaturalHeight;
         this._switcher.actor.allocate(childBox, flags);



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