summaryrefslogtreecommitdiff
path: root/lib/sway/window.vala
blob: f0e2f9a6e812a23027ecb35f7575e220d46e0e2e (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);
    }
  }
}