From d4c2f9d0efb4bea490b01f85d911c75020765a79 Mon Sep 17 00:00:00 2001 From: Joonas Henriksson Date: Wed, 27 Nov 2019 02:13:24 +0200 Subject: [PATCH] appIcon: Draw running dot above the overview icon Prevent the app-well-app-running dot from getting unintentionally hidden behind the overview-icon background by initializing the running-dot after its sibling overview-icon. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/866 --- js/ui/appDisplay.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 49e6d58de..ac9ae3bee 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2038,17 +2038,10 @@ var AppIcon = class AppIcon { x_fill: true, y_fill: true }); - this._dot = new St.Widget({ style_class: 'app-well-app-running-dot', - layout_manager: new Clutter.BinLayout(), - x_expand: true, y_expand: true, - x_align: Clutter.ActorAlign.CENTER, - y_align: Clutter.ActorAlign.END }); - this._iconContainer = new St.Widget({ layout_manager: new Clutter.BinLayout(), x_expand: true, y_expand: true }); this.actor.set_child(this._iconContainer); - this._iconContainer.add_child(this._dot); this.actor._delegate = this; @@ -2065,6 +2058,16 @@ var AppIcon = class AppIcon { this.icon = new IconGrid.BaseIcon(app.get_name(), iconParams); this._iconContainer.add_child(this.icon); + this._dot = new St.Widget({ + style_class: 'app-well-app-running-dot', + layout_manager: new Clutter.BinLayout(), + x_expand: true, + y_expand: true, + x_align: Clutter.ActorAlign.CENTER, + y_align: Clutter.ActorAlign.END, + }); + this._iconContainer.add_child(this._dot); + this.actor.label_actor = this.icon.label; this.actor.connect('leave-event', this._onLeaveEvent.bind(this));