summaryrefslogtreecommitdiff
path: root/lib/sway/window.vala
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sway/window.vala')
-rw-r--r--lib/sway/window.vala23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/sway/window.vala b/lib/sway/window.vala
new file mode 100644
index 0000000..f0e2f9a
--- /dev/null
+++ b/lib/sway/window.vala
@@ -0,0 +1,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);
+ }
+ }
+}
+