Animate fullscreen windows fully out when previwing workspaces

For some reason the gnome-shell code subtracts the panel height from the yDest,
this will leave any fullscreen windows visible when moving up.
This commit is contained in:
Tor Hedin Brønner
2017-10-03 01:33:46 +02:00
parent 00df7f16bf
commit 3f8d78d605
+2 -2
View File
@@ -19,11 +19,11 @@ WindowManager.WindowManager.prototype._previewWorkspace = function(from, to, dir
if (direction == Meta.MotionDirection.UP ||
direction == Meta.MotionDirection.UP_LEFT ||
direction == Meta.MotionDirection.UP_RIGHT)
yDest = global.screen_height - Main.panel.actor.height;
yDest = global.screen_height;
else if (direction == Meta.MotionDirection.DOWN ||
direction == Meta.MotionDirection.DOWN_LEFT ||
direction == Meta.MotionDirection.DOWN_RIGHT)
yDest = -global.screen_height + Main.panel.actor.height;
yDest = -global.screen_height;
if (direction == Meta.MotionDirection.LEFT ||
direction == Meta.MotionDirection.UP_LEFT ||