summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sway/node.vala4
-rw-r--r--lib/sway/sway.vala7
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/sway/node.vala b/lib/sway/node.vala
index 8f1e925..01ff387 100644
--- a/lib/sway/node.vala
+++ b/lib/sway/node.vala
@@ -10,9 +10,9 @@ public class Node : Object {
public Rectangle deco_rect { get; private set; }
public NodeType node_type { get; protected set;}
- public weak Node parent;
+ public weak Node parent { get; private set; }
- public List<weak Node> nodes;
+ public unowned List<weak Node> nodes { get; private set; }
public List<weak Window> windows { owned get {
var arr = new List<weak Window> ();
foreach (var node in nodes) {
diff --git a/lib/sway/sway.vala b/lib/sway/sway.vala
index f6c20b4..b92d8da 100644
--- a/lib/sway/sway.vala
+++ b/lib/sway/sway.vala
@@ -37,14 +37,15 @@ public class Sway : Object {
});
}
- public Workspace focused_workspace;
- public Output focused_output;
- public Container? focused_container;
+ public Workspace focused_workspace { get; private set; }
+ public Output focused_output { get; private set; }
+ public Container? focused_container { get; private set; }
private static HashTable<int, Node> _nodes =
new HashTable<int, Node>(i => i, (a,b) => a==b);
public List<weak Node> nodes { owned get { return _nodes.get_values(); } }
+ public List<weak Node> node_test { owned get { return nodes; } }
private HashTable<string, Workspace> _workspaces =
new HashTable<string, Workspace>(str_hash, str_equal);