From 445f6c2ee0a9a21d4de94dff621279887caa25a4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Mar 2026 09:02:49 +0100 Subject: ... --- accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml index 3ae94346..0dd1bca8 100644 --- a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml +++ b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml @@ -20,7 +20,7 @@ Row { values: { let currWorkspaces = NiriService.workspaces; const ignoreWorkspaces = Array.from(workspaces.ignoreWorkspaces); - currWorkspaces = currWorkspaces.filter(ws => ws.output == workspaces.screen.name).filter(ws => ws.is_active || ignoreWorkspaces.every(iws => iws !== ws.name)); + currWorkspaces = currWorkspaces.filter(ws => ws.output == workspaces.screen?.name).filter(ws => ws.is_active || ignoreWorkspaces.every(iws => iws !== ws.name)); currWorkspaces.sort((a, b) => { if (NiriService.outputs?.[a.output]?.logical?.x !== NiriService.outputs?.[b.output]?.logical?.x) return NiriService.outputs?.[a.output]?.logical?.x - NiriService.outputs?.[b.output]?.logical?.x -- cgit v1.2.3