diff options
author | noname <[email protected]> | 2025-03-03 21:53:09 +1100 |
---|---|---|
committer | noname <[email protected]> | 2025-03-03 22:06:48 +1100 |
commit | e9a47074e874aaa08fa781375f00930783ba99a8 (patch) | |
tree | 32880009318fd890015c5038b2a2fd4eded46601 /lib/sway/workspace.vala | |
parent | f1df814f2e5795330615c00e5d8069325a3629bf (diff) |
nodes properties and workspace events
Diffstat (limited to 'lib/sway/workspace.vala')
-rw-r--r-- | lib/sway/workspace.vala | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/sway/workspace.vala b/lib/sway/workspace.vala index a849a62..17795b3 100644 --- a/lib/sway/workspace.vala +++ b/lib/sway/workspace.vala @@ -1,12 +1,20 @@ namespace AstalSway { public class Workspace : Node { - public int num {get; private set; } + public string representation; - public NodeType type = NodeType.WORKSPACE; + public Workspace() { + node_type = NodeType.WORKSPACE; + } internal override void sync(Json.Object obj) { + var rep = obj.get_member("representation"); + if (rep != null) { + representation = rep.get_string(); + } else { + representation = ""; + print("aa"); + } base.sync(obj); - // num = (int)obj.get_int_member("num"); } } } |