overivew: Propagate target state when animating to overview
Next commits will requires ControlsManager to animate to different states, depending on how Overview is called. Add a new 'state' parameter to ControlsManager's, and OverviewActor's animateToOverview, and Overview.show(). Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:

committed by
Marge Bot

parent
bce67a27cc
commit
8089d7cbf7
@ -177,11 +177,11 @@ class ControlsManager extends St.Widget {
|
||||
this._workspaceAdjustment.value = activeIndex;
|
||||
}
|
||||
|
||||
animateToOverview(callback) {
|
||||
animateToOverview(state, callback) {
|
||||
this.viewSelector.prepareToEnterOverview();
|
||||
|
||||
this._stateAdjustment.value = ControlsState.HIDDEN;
|
||||
this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
|
||||
this._stateAdjustment.ease(state, {
|
||||
duration: Overview.ANIMATION_TIME,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
onStopped: () => {
|
||||
|
Reference in New Issue
Block a user