From 956db078c3ffdca8d741b97986df2ba1f50ca00f Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 17 Sep 2020 15:24:12 +0800 Subject: [PATCH] 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. Part-of: --- 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 12b966927..87bf835b0 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -609,12 +609,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;