summaryrefslogtreecommitdiff
path: root/lib/sway/window.vala
blob: 012e76ee7c917f74a23d2b5057fd60732b3c282e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace AstalSway {
public class Window : Container {
    public string app_id; 
    public string shell; 
    public int pid;
    public bool visible;
    public bool inhibit_idle;
        
    public Window() {
        node_type = NodeType.WINDOW;
    }

    internal override void sync(Json.Object obj) {
        app_id = obj.get_string_member("app_id");
        shell = obj.get_string_member("shell");
        pid = (int)obj.get_int_member("pid");
        visible = obj.get_boolean_member("visible");
        inhibit_idle = obj.get_boolean_member("inhibit_idle");
        base.sync(obj);
    }
}
}