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



commit dc11851f794433c9d141edeb628ae68183bd9f6e
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.

 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]