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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1886>
This commit is contained in:
Harshad Gavali 2021-06-13 00:41:52 +05:30 committed by Florian Müllner
parent 5be67eb190
commit 177b36f82b

View File

@ -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 &&