From fa83bf389a446d112ef6086bbea7981d79362c12 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Wed, 11 Sep 2019 11:15:44 -0400 Subject: [PATCH] Adjust dynamic transparency for vertical panel --- transparency.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transparency.js b/transparency.js index 1cd2b8b..6d1294f 100644 --- a/transparency.js +++ b/transparency.js @@ -129,10 +129,14 @@ var DynamicTransparency = Utils.defineClass({ this._proximityManager.removeWatch(this._proximityWatchId); if (Me.settings.get_boolean('trans-use-dynamic-opacity')) { + let isVertical = Panel.checkIfVertical(); + let threshold = Me.settings.get_int('trans-dynamic-distance'); + this._proximityWatchId = this._proximityManager.createWatch( this._dtpPanel.panelBox, Proximity.Mode[Me.settings.get_string('trans-dynamic-behavior')], - 0, Me.settings.get_int('trans-dynamic-distance'), + isVertical ? threshold : 0, + isVertical ? 0 : threshold, overlap => { this._windowOverlap = overlap; this._updateAlphaAndSet();