From 4bb2a364d3718f4d55481a11b18b410907fbd4a2 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 7 Jul 2014 17:26:37 +0200 Subject: [PATCH] overview: Avoid repositioning windows while returning to desktop When returning to the desktop from overview we always show the workspaceDisplay, given that is which have the windows clones to allow animations. The problem becomes when previous that we were at some other page, like Search or AppDisplay. The problem is that when showing the workspaceDisplay the windows are repositioned. That's wanted except when returning from overview, since that causes unwanted animations of the windows. To avoid that just not reposition the windows if leaving the overview. --- js/ui/workspace.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index adad46fad..ec012c04b 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1258,6 +1258,12 @@ const Workspace = new Lang.Class({ return; } + // We will reposition windows when enter again overview anyway. + // In this way we avoid unwanted animations of windows repositioning while + // animating overview + if (this.leavingOverview) + return; + let initialPositioning = flags & WindowPositionFlags.INITIAL; let animate = flags & WindowPositionFlags.ANIMATE;