Add window workspace check in proximity detection

fixes #1424
This commit is contained in:
Charles Gagnon
2022-04-02 18:21:46 -04:00
parent 9ca0c6bda8
commit da6d6fdc7b
3 changed files with 11 additions and 13 deletions

View File

@@ -138,7 +138,8 @@ var DynamicTransparency = class {
let threshold = Me.settings.get_int('trans-dynamic-distance');
this._proximityWatchId = this._proximityManager.createWatch(
this._dtpPanel.panelBox.get_parent(),
this._dtpPanel.panelBox.get_parent(),
this._dtpPanel.monitor.index,
Proximity.Mode[Me.settings.get_string('trans-dynamic-behavior')],
isVertical ? threshold : 0,
isVertical ? 0 : threshold,