[gnome-shell/gbsneto/random-cleanups-pt1: 1/3] workspacesView: Chain up on show and hide



commit c79b9ff2767a282729a8c9143f3d1763c0a8888f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jun 1 12:20:44 2020 -0300

    workspacesView: Chain up on show and hide
    
    WorkspacesDisplay is a ClutterActor subclass, and overriding
    the show and hide methods require chaining up, otherwise the
    actor isn't actually shown or hidden. So for it worked because
    actors are visible by default, but this is not the intended
    behavior.
    
    Chain up on show and hide.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1295

 js/ui/workspacesView.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 09155c5ae1..e3798030af 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -609,6 +609,8 @@ class WorkspacesDisplay extends St.Widget {
     }
 
     show(fadeOnPrimary) {
+        super.show();
+
         this._updateWorkspacesViews();
         for (let i = 0; i < this._workspacesViews.length; i++) {
             let animationType;
@@ -641,6 +643,8 @@ class WorkspacesDisplay extends St.Widget {
     }
 
     hide() {
+        super.hide();
+
         if (this._restackedNotifyId > 0) {
             Main.overview.disconnect(this._restackedNotifyId);
             this._restackedNotifyId = 0;


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