From 6cdaec40010201cf50090f75836d50c632690fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 11 Jul 2020 17:38:04 +0200 Subject: [PATCH] workspace: Always use floating layout for fade transition We don't animate size and position when fading, so we want all previews to already be at their final position. However when the app picker is opened from within the overview, window previews use the zoomed layout, so that's the state we are then fading when leaving the overview from the app picker. Fix that by setting the correct state at the start of the fade transition. (In the case of fadeToOverview(), the value should always be correct already, but set it anyway for symmetry with fadeFromOverview()) https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969 --- js/ui/workspace.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 12c4a39be..bbf61da33 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1027,6 +1027,8 @@ class Workspace extends St.Widget { if (this.metaWorkspace !== null && !this.metaWorkspace.active) return; + this.layout_manager.stateAdjustment.value = 0; + // Special case maximized windows, since it doesn't make sense // to animate windows below in the stack let topMaximizedWindow; @@ -1079,6 +1081,8 @@ class Workspace extends St.Widget { if (this.metaWorkspace !== null && !this.metaWorkspace.active) return; + this.layout_manager.stateAdjustment.value = 0; + // Special case maximized windows, since it doesn't make sense // to animate windows below in the stack let topMaximizedWindow;