From f6d55a1576118a9e3e3e44cba0adee9009584a1c Mon Sep 17 00:00:00 2001 From: CharlesG Date: Wed, 28 Mar 2018 13:35:28 -0600 Subject: [PATCH 1/3] Ensure the adjustment of the dynamic transparency when exiting the overview --- intellihide.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/intellihide.js b/intellihide.js index 60a4c49..06d4ffd 100644 --- a/intellihide.js +++ b/intellihide.js @@ -184,6 +184,11 @@ var Intellihide = new Lang.Class({ this._dtpSettings, 'changed::intellihide-behaviour', () => this._queueUpdatePanelPosition() + ], + [ + Main.overview, + 'hidden', + () => this._adjustDynamicTransparency() ] ); }, @@ -259,13 +264,13 @@ var Intellihide = new Lang.Class({ this._disconnectFocusedWindow(); let focusedWindow = global.display.focus_window; - + if (focusedWindow) { let window = (focusedWindow.is_attached_dialog() ? focusedWindow.get_transient_for() : focusedWindow).get_compositor_private(); let metaWindow = window.get_meta_window(); - + if (this._checkIfHandledWindowType(metaWindow)) { this._focusedWindowInfo = { window: window, @@ -381,8 +386,12 @@ var Intellihide = new Lang.Class({ return false; }, + _adjustDynamicTransparency: function() { + this._invokeIfExists(this._dtpPanel.panel._updateSolidStyle); + }, + _revealPanel: function(immediate) { - this._animatePanel(0, immediate, () => this._invokeIfExists(this._dtpPanel.panel._updateSolidStyle)); + this._animatePanel(0, immediate, () => this._adjustDynamicTransparency()); }, _hidePanel: function(immediate) { From ca34b5b4d525aa8090c928711eb3729f948fda9e Mon Sep 17 00:00:00 2001 From: CharlesG Date: Fri, 30 Mar 2018 09:03:17 -0600 Subject: [PATCH 2/3] Remove superfluous lambda --- intellihide.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intellihide.js b/intellihide.js index 06d4ffd..3a9ab99 100644 --- a/intellihide.js +++ b/intellihide.js @@ -264,13 +264,13 @@ var Intellihide = new Lang.Class({ this._disconnectFocusedWindow(); let focusedWindow = global.display.focus_window; - + if (focusedWindow) { let window = (focusedWindow.is_attached_dialog() ? focusedWindow.get_transient_for() : focusedWindow).get_compositor_private(); let metaWindow = window.get_meta_window(); - + if (this._checkIfHandledWindowType(metaWindow)) { this._focusedWindowInfo = { window: window, @@ -391,7 +391,7 @@ var Intellihide = new Lang.Class({ }, _revealPanel: function(immediate) { - this._animatePanel(0, immediate, () => this._adjustDynamicTransparency()); + this._animatePanel(0, immediate, this._adjustDynamicTransparency); }, _hidePanel: function(immediate) { From 1db31f9587871e1a6307c664c9817b972003b8a2 Mon Sep 17 00:00:00 2001 From: CharlesG Date: Sat, 31 Mar 2018 14:49:27 -0600 Subject: [PATCH 3/3] Globally apply the dynamic transparency fix --- intellihide.js | 5 ----- panel.js | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/intellihide.js b/intellihide.js index 3a9ab99..8fc4cd7 100644 --- a/intellihide.js +++ b/intellihide.js @@ -184,11 +184,6 @@ var Intellihide = new Lang.Class({ this._dtpSettings, 'changed::intellihide-behaviour', () => this._queueUpdatePanelPosition() - ], - [ - Main.overview, - 'hidden', - () => this._adjustDynamicTransparency() ] ); }, diff --git a/panel.js b/panel.js index 8fe3de7..a3d0906 100644 --- a/panel.js +++ b/panel.js @@ -197,6 +197,11 @@ var dtpPanel = new Lang.Class({ Main.overview.dashIconSize = this.taskbar.iconSize; }) ], + [ + Main.overview, + 'hidden', + () => this.panel._updateSolidStyle ? this.panel._updateSolidStyle() : null + ], [ this.panel._rightBox, 'actor-added',