topbar: guard against non-existing space

This commit is contained in:
Tor Hedin Brønner
2020-02-25 10:42:46 +01:00
parent fccbf8eaf0
commit f5dd5b9c9d
+3
View File
@@ -577,6 +577,9 @@ function fixTopBar() {
let spaces = Tiling.spaces
if (!spaces)
return;
let space = spaces.monitors.get(panelMonitor);
if (!space)
return;
let normal = !Main.overview.visible && !Tiling.inPreview
let selected = spaces.monitors.get(panelMonitor).selectedWindow
let focus = display.focus_window