[gnome-shell] overviewControls: Avoid hiding early AppDisplay when transitioning to Session



commit 177b36f82b9a884dd9ac8828c79fd9e44125a928
Author: Harshad Gavali <harshadgavali outlook com>
Date:   Sun Jun 13 00:41:52 2021 +0530

    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>

 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 13535d0689..88726573dc 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 &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]