blob: 7a0fc93ede4952b64ca11fc762d2b6e1201f3097 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
namespace AstalSway {
public class Container : Node {
public bool sticky;
public bool floating;
public bool focused;
public string border;
public int border_width;
public int fullscreen_mode;
public Container() {
node_type = NodeType.CONTAINER;
}
internal override void sync(Json.Object obj) {
border = obj.get_string_member("border");
border_width = (int)obj.get_int_member("current_border_width");
sticky = obj.get_boolean_member("sticky");
floating = obj.get_string_member("type") == "floating_con";
fullscreen_mode = (int)obj.get_int_member("fullscreen_mode");
base.sync(obj);
}
public override void focus() {
Sway.get_default().run_command(@"[con_id=$id] focus");
}
}
}
|