We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683b219 commit d9591fdCopy full SHA for d9591fd
js/ui/panel.js
@@ -2459,7 +2459,9 @@ Panel.prototype = {
2459
2460
if (this._destroyed) // ensure we do not try to set barriers if panel is being destroyed
2461
return;
2462
- if (this.monitorIndex < 0 || this.monitorIndex >= global.screen.get_n_monitors()) // skip panels that never got created
+
2463
+ let n_monitors = global.display.get_n_monitors();
2464
+ if (n_monitors == 1 || this.monitorIndex < 0 || this.monitorIndex >= n_monitors) // skip panels that never got created
2465
2466
2467
let screen_width = global.screen_width;
0 commit comments