Only check monitor index if multi monitor is enabled.

This commit is contained in:
lkc0987
2018-12-31 15:57:24 -08:00
committed by Krishna Lingashetty
parent e2eeb02901
commit 2c7f0c00a7

View File

@@ -519,7 +519,9 @@ var taskbarAppIcon = new Lang.Class({
},
_checkIfMonitorHasFocus: function() {
return global.display.focus_window && global.display.focus_window.get_monitor() === this.panelWrapper.monitor.index;
return global.display.focus_window
&& (!this._dtpSettings.get_boolean('multi-monitors') // only check same monitor index if multi window is enabled.
|| global.display.focus_window.get_monitor() === this.panelWrapper.monitor.index);
},
_setAppIconPadding: function() {