From cf85fc5283e650dfc79b31742193ff456553b8b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Thu, 26 Mar 2026 18:39:02 +0700 Subject: [PATCH] Sort windows by position --- home/ags/files/Bar.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home/ags/files/Bar.tsx b/home/ags/files/Bar.tsx index 2176d98..cf03f0d 100644 --- a/home/ags/files/Bar.tsx +++ b/home/ags/files/Bar.tsx @@ -278,7 +278,9 @@ function Workspaces({ connector }: { connector: string }): JSX.Element { {/* Generate a derived binding by passing a transformation function into the `workspaces` state */} - wss.filter((ws) => ws.output === connector).sort((a, b) => a.idx - b.idx) + wss.filter((ws) => ws.output === connector) + .filter((ws) => ws.is_active || windows().some((w: any) => w.workspace_id === ws.id)) + .sort((a, b) => a.idx - b.idx) )}> {(ws: any) => (