windowManager: Fix fallback path for icon_geometry animation

It doesn't seem like this code was ever tested.

https://bugzilla.gnome.org/show_bug.cgi?id=694052
This commit is contained in:
Jasper St. Pierre 2013-02-17 15:01:07 -05:00
parent ec61004622
commit 3205d1e16a

View File

@ -254,10 +254,12 @@ const WindowManager = new Lang.Class({
yScale = geom.height / actor.height;
} else {
let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
let xDest = monitor.x;
let yDest = monitor.y;
xDest = monitor.x;
yDest = monitor.y;
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
xDest += monitor.width;
xScale = 0;
yScale = 0;
}
Tweener.addTween(actor,