diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml')
| -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 | ||
