[gnome-shell] overview: Emit 'hidden' after it's *really* hidden



commit 956db078c3ffdca8d741b97986df2ba1f50ca00f
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.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

 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 12b9669272..87bf835b03 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]