Use workspace.num as index for sway

Was incorrectly using the internal sway id of the workspace which is not
the same as the user facing id

Fixes #442
This commit is contained in:
David Keijser
2025-10-09 16:46:26 +02:00
parent 26926d7808
commit c590c2c6d9
+1 -1
View File
@@ -71,7 +71,7 @@ Item {
const wsData = {
"id": i,
"idx": ws.id,
"idx": ws.num,
"name": ws.name || "",
"output": (ws.monitor && ws.monitor.name) ? ws.monitor.name : "",
"isActive": ws.active === true,