diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-05 09:02:49 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-05 09:02:49 +0100 |
| commit | 445f6c2ee0a9a21d4de94dff621279887caa25a4 (patch) | |
| tree | 1d6849968f59a4a61d71e68682f4473f0a701c27 /accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | |
| parent | a51282674852f1fb452ce6eb11e14b34064cc839 (diff) | |
| download | nixos-445f6c2ee0a9a21d4de94dff621279887caa25a4.tar nixos-445f6c2ee0a9a21d4de94dff621279887caa25a4.tar.gz nixos-445f6c2ee0a9a21d4de94dff621279887caa25a4.tar.bz2 nixos-445f6c2ee0a9a21d4de94dff621279887caa25a4.tar.xz nixos-445f6c2ee0a9a21d4de94dff621279887caa25a4.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 20 | values: { | 20 | values: { |
| 21 | let currWorkspaces = NiriService.workspaces; | 21 | let currWorkspaces = NiriService.workspaces; |
| 22 | const ignoreWorkspaces = Array.from(workspaces.ignoreWorkspaces); | 22 | const ignoreWorkspaces = Array.from(workspaces.ignoreWorkspaces); |
| 23 | currWorkspaces = currWorkspaces.filter(ws => ws.output == workspaces.screen.name).filter(ws => ws.is_active || ignoreWorkspaces.every(iws => iws !== ws.name)); | 23 | currWorkspaces = currWorkspaces.filter(ws => ws.output == workspaces.screen?.name).filter(ws => ws.is_active || ignoreWorkspaces.every(iws => iws !== ws.name)); |
| 24 | currWorkspaces.sort((a, b) => { | 24 | currWorkspaces.sort((a, b) => { |
| 25 | if (NiriService.outputs?.[a.output]?.logical?.x !== NiriService.outputs?.[b.output]?.logical?.x) | 25 | if (NiriService.outputs?.[a.output]?.logical?.x !== NiriService.outputs?.[b.output]?.logical?.x) |
| 26 | return NiriService.outputs?.[a.output]?.logical?.x - NiriService.outputs?.[b.output]?.logical?.x | 26 | return NiriService.outputs?.[a.output]?.logical?.x - NiriService.outputs?.[b.output]?.logical?.x |
