This commit is contained in:
Bloxx12 2025-06-24 15:51:34 +02:00
commit 334bca71fe
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
17 changed files with 733 additions and 117 deletions

View file

@ -26,7 +26,7 @@ Singleton {
var event = JSON.parse(data);
let workspaces = [];
if (event.WorkspacesChanged) {
root.workspaces = event.WorkspacesChanged.workspaces.filter(w => w.name);
root.workspaces = event.WorkspacesChanged.workspaces;
root.workspaces = root.workspaces.sort((a, b) => a.id - b.id);
root.activeWorkspaceIndex = root.workspaces.findIndex(w => w.is_focused);
if (root.activeWorkspaceIndex < 0) {
@ -68,6 +68,15 @@ Singleton {
}
}
}
// component Workspace: QtObject {
// required property int id
// property int idx
// property string name: "VOID"
// required property string output
// property bool is_active
// property bool is_focused
// property int active_window_id
// }
}
// {