diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-08-27 21:10:43 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-08-27 21:10:43 +0200 |
| commit | 9d1edba662781e918d49e4ab66f63d118e266785 (patch) | |
| tree | 9821413abc08dca47dc594e95235fe6751cdf358 /accounts | |
| parent | c3c323fe91729f459e8f989b9022ddb696e02747 (diff) | |
| download | nixos-9d1edba662781e918d49e4ab66f63d118e266785.tar nixos-9d1edba662781e918d49e4ab66f63d118e266785.tar.gz nixos-9d1edba662781e918d49e4ab66f63d118e266785.tar.bz2 nixos-9d1edba662781e918d49e4ab66f63d118e266785.tar.xz nixos-9d1edba662781e918d49e4ab66f63d118e266785.zip | |
...
Diffstat (limited to 'accounts')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml index d0595b3d..1ed1458c 100644 --- a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml +++ b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | |||
| @@ -28,7 +28,7 @@ Row { | |||
| 28 | return NiriService.outputs?.[a.output]?.logical?.y - NiriService.outputs?.[b.output]?.logical?.y | 28 | return NiriService.outputs?.[a.output]?.logical?.y - NiriService.outputs?.[b.output]?.logical?.y |
| 29 | return a.idx - b.idx; | 29 | return a.idx - b.idx; |
| 30 | }); | 30 | }); |
| 31 | return currWorkspaces; | 31 | return JSON.parse(JSON.stringify(currWorkspaces)); |
| 32 | } | 32 | } |
| 33 | } | 33 | } |
| 34 | 34 | ||
| @@ -127,7 +127,7 @@ Row { | |||
| 127 | id: windowsModel | 127 | id: windowsModel |
| 128 | 128 | ||
| 129 | values: { | 129 | values: { |
| 130 | let currWindows = Array.from(NiriService.windows).filter(win => win.workspace_id == wsItem.workspaceData.id); | 130 | let currWindows = NiriService.windows.filter(win => win.workspace_id == wsItem.workspaceData.id); |
| 131 | currWindows.sort((a, b) => { | 131 | currWindows.sort((a, b) => { |
| 132 | if (a.is_floating !== b.is_floating) | 132 | if (a.is_floating !== b.is_floating) |
| 133 | return b.is_floating - a.is_floating; | 133 | return b.is_floating - a.is_floating; |
| @@ -144,7 +144,7 @@ Row { | |||
| 144 | 144 | ||
| 145 | return a.title.localeCompare(b.title); | 145 | return a.title.localeCompare(b.title); |
| 146 | }); | 146 | }); |
| 147 | return currWindows; | 147 | return JSON.parse(JSON.stringify(currWindows)); |
| 148 | } | 148 | } |
| 149 | } | 149 | } |
| 150 | 150 | ||
