From 90019b99b671664855c1c53a30da39ca572f4a0e Mon Sep 17 00:00:00 2001 From: noname Date: Tue, 4 Mar 2025 22:27:31 +1100 Subject: implement containers and windows --- lib/sway/window.vala | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/sway/window.vala (limited to 'lib/sway/window.vala') 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); + } + } +} + -- cgit v1.2.3