[gnome-shell] fix minimize animation for RTL locales



commit 5ca665bddea1b40df3c0ce0c3a32b829aeb4f8e1
Author: Abderrahim Kitouni <a kitouni gmail com>
Date:   Wed Feb 10 23:26:24 2010 +0100

    fix minimize animation for RTL locales
    
    https://bugzilla.gnome.org/show_bug.cgi?id=584662

 js/ui/windowManager.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 6877986..d4d4945 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -5,6 +5,7 @@ const Lang = imports.lang;
 const Mainloop = imports.mainloop;
 const Meta = imports.gi.Meta;
 const Shell = imports.gi.Shell;
+const St = imports.gi.St;
 
 const AltTab = imports.ui.altTab;
 const WorkspaceSwitcherPopup = imports.ui.workspaceSwitcherPopup;
@@ -88,11 +89,14 @@ WindowManager.prototype = {
         this._minimizing.push(actor);
 
         let primary = global.get_primary_monitor();
+        let xDest = primary.x;
+        if (St.Widget.get_default_direction() == St.TextDirection.RTL)
+            xDest += primary.width;
 
         Tweener.addTween(actor,
                          { scale_x: 0.0,
                            scale_y: 0.0,
-                           x: primary.x,
+                           x: xDest,
                            y: 0,
                            time: WINDOW_ANIMATION_TIME,
                            transition: "easeOutQuad",



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