overview: Unset visibleTarget on gesture end

The property describes the target visibility (that is, the visibility
that will be set after the ongoing transition), and is therefore updated
at the start of the transition rather than from hideDone().

The overview gesture currently misses resetting it at the end, so it
is only updated to the correct state the next time the overview is
entered.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3798

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1726>
This commit is contained in:
Florian Müllner 2021-02-26 22:55:57 +01:00 committed by Marge Bot
parent a05005e86e
commit e2c1407153

View File

@ -396,6 +396,7 @@ var Overview = class {
let onComplete; let onComplete;
if (endProgress === 0) { if (endProgress === 0) {
this._shown = false; this._shown = false;
this._visibleTarget = false;
this.emit('hiding'); this.emit('hiding');
Main.panel.style = 'transition-duration: %dms;'.format(duration); Main.panel.style = 'transition-duration: %dms;'.format(duration);
onComplete = () => this._hideDone(); onComplete = () => this._hideDone();