workspace: Always set state at the end of overview transition

We don't change to the zoomed out state when fading to the overview,
however we should do that after the transition in case the user
switches to the window picker.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969
This commit is contained in:
Florian Müllner 2020-07-11 23:08:42 +02:00 committed by Georges Basile Stavracas Neto
parent 2a0c116757
commit 82be010fd8

View File

@ -1194,11 +1194,13 @@ class Workspace extends St.Widget {
_doneLeavingOverview() { _doneLeavingOverview() {
this.layout_manager.layout_frozen = false; this.layout_manager.layout_frozen = false;
this.layout_manager.stateAdjustment.value = 0;
this._windows.forEach(w => (w.opacity = 255)); this._windows.forEach(w => (w.opacity = 255));
} }
_doneShowingOverview() { _doneShowingOverview() {
this.layout_manager.layout_frozen = false; this.layout_manager.layout_frozen = false;
this.layout_manager.stateAdjustment.value = 1;
this._windows.forEach(w => (w.opacity = 255)); this._windows.forEach(w => (w.opacity = 255));
} }