diff options
author | noname <[email protected]> | 2025-03-21 13:25:39 +1100 |
---|---|---|
committer | noname <[email protected]> | 2025-03-21 13:41:39 +1100 |
commit | 58a61fa1a79f9265c8ccf4ffbd06460595a53251 (patch) | |
tree | ae6198a6e064052eb6ad5e6d681400da8bd967b8 | |
parent | 873c42ff4f6b1f35c00fc0a3536c3a851f50e7b8 (diff) |
fix empty nodes
-rw-r--r-- | lib/sway/node.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sway/node.vala b/lib/sway/node.vala index 01ff387..a42ec88 100644 --- a/lib/sway/node.vala +++ b/lib/sway/node.vala @@ -91,6 +91,7 @@ public class Node : Object { var arr = obj.get_array_member("nodes"); var arr2 = obj.get_array_member("floating_nodes"); + nodes = new List<weak Node>(); sync_nodes(arr); sync_nodes(arr2); @@ -115,7 +116,7 @@ public class Node : Object { node.sync(obj); } - nodes = (owned) new_nodes; + nodes.concat((owned) new_nodes); } public virtual void focus() { |