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:
parent
ec61004622
commit
3205d1e16a
@ -254,10 +254,12 @@ const WindowManager = new Lang.Class({
|
|||||||
yScale = geom.height / actor.height;
|
yScale = geom.height / actor.height;
|
||||||
} else {
|
} else {
|
||||||
let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
|
let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
|
||||||
let xDest = monitor.x;
|
xDest = monitor.x;
|
||||||
let yDest = monitor.y;
|
yDest = monitor.y;
|
||||||
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
|
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
|
||||||
xDest += monitor.width;
|
xDest += monitor.width;
|
||||||
|
xScale = 0;
|
||||||
|
yScale = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Tweener.addTween(actor,
|
Tweener.addTween(actor,
|
||||||
|
Loading…
Reference in New Issue
Block a user