[gnome-shell] panel: Don't completely hide AppMenuButton when invisible



commit e6c1db2bc80773362a00291155eda3e65f898439
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Mar 1 10:03:50 2021 +0100

    panel: Don't completely hide AppMenuButton when invisible
    
    We already set the AppMenuButton to be non-reactive and transparent when
    we hide it. Hiding it completely using clutter_actor_hide() will
    additionally make it no longer affect layout and thus queue a relayout.
    
    Since we hide the appMenu in the overview and we want to avoid
    relayouting the panel when entering and leaving the overview, don't
    completely hide the AppMenuButton to avoid queueing this relayout.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1733>

 js/ui/panel.js | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index cfde06e284..8ca5d038d0 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -222,7 +222,6 @@ var AppMenuButton = GObject.registerClass({
 
         this._visible = true;
         this.reactive = true;
-        this.show();
         this.remove_all_transitions();
         this.ease({
             opacity: 255,
@@ -242,7 +241,6 @@ var AppMenuButton = GObject.registerClass({
             opacity: 0,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,
             duration: Overview.ANIMATION_TIME,
-            onComplete: () => this.hide(),
         });
     }
 


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