Update proximity on workspace switch

This commit is contained in:
Charles Gagnon
2018-10-15 15:56:39 -04:00
parent 411829bd06
commit 6743186d69

View File

@@ -121,6 +121,11 @@ var ProximityManager = new Lang.Class({
'restacked',
() => this._queueUpdate()
],
[
global.window_manager,
'switch-workspace',
() => Object.keys(this._watches).forEach(id => this._watches[id].overlap = 0)
],
[
global.display,
'notify::focus-window',
@@ -182,6 +187,7 @@ var ProximityManager = new Lang.Class({
_getHandledWindows: function() {
return global.get_window_actors()
.filter(w => w.visible)
.map(w => w.get_meta_window())
.filter(mw => this._checkIfHandledWindow(mw));
},