From 177b36f82b9a884dd9ac8828c79fd9e44125a928 Mon Sep 17 00:00:00 2001 From: Harshad Gavali Date: Sun, 13 Jun 2021 00:41:52 +0530 Subject: [PATCH] overviewControls: Avoid hiding early AppDisplay when transitioning to Session When transitioning from AppDisplay to Session, AppDisplay should be visible throughout the transition. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4214 Part-of: --- js/ui/overviewControls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 13535d068..88726573d 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -534,8 +534,8 @@ class ControlsManager extends St.Widget { if (!stateTransitionParams) stateTransitionParams = this._stateAdjustment.getStateTransitionParams(); - const { currentState, finalState } = stateTransitionParams; - const state = Math.max(currentState, finalState); + const { initialState, finalState } = stateTransitionParams; + const state = Math.max(initialState, finalState); this._appDisplay.visible = state > ControlsState.WINDOW_PICKER &&