summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml b/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml
index dcc23279..ac1cbf3a 100644
--- a/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml
+++ b/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml
@@ -11,7 +11,7 @@ Item {
11 11
12 property var activeWindow: { 12 property var activeWindow: {
13 let currWindowId = Array.from(NiriService.workspaces).find(ws => { 13 let currWindowId = Array.from(NiriService.workspaces).find(ws => {
14 return ws.output === screen.name && ws.is_active; 14 return ws.output === screen?.name && ws.is_active;
15 })?.active_window_id; 15 })?.active_window_id;
16 16
17 return currWindowId ? Array.from(NiriService.windows).find(win => win.id == currWindowId) : null; 17 return currWindowId ? Array.from(NiriService.windows).find(win => win.id == currWindowId) : null;