[gnome-shell/gnome-40] overview: Emit 'hidden' after it's *really* hidden
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-40] overview: Emit 'hidden' after it's *really* hidden
- Date: Tue, 21 Sep 2021 18:08:46 +0000 (UTC)
commit 268f41b203f02c8493e456a6769793b9523bc0a8
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Thu Sep 17 15:24:12 2020 +0800
overview: Emit 'hidden' after it's *really* hidden
Previously we would emit 'hidden' before the overview was fully hidden,
so any attempts to animate windows on that signal could still fail.
(cherry picked from commit 956db078c3ffdca8d741b97986df2ba1f50ca00f)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1982>
js/ui/overview.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index b61c0b066d..bc3e7b038d 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -620,12 +620,14 @@ var Overview = class {
this._visible = false;
this._animationInProgress = false;
- this.emit('hidden');
// Handle any calls to show* while we were hiding
- if (this._shown)
+ if (this._shown) {
+ this.emit('hidden');
this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER);
- else
+ } else {
Main.layoutManager.hideOverview();
+ this.emit('hidden');
+ }
Main.panel.style = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]