summaryrefslogtreecommitdiff
path: root/lib/sway/window.vala
diff options
context:
space:
mode:
authornoname <[email protected]>2025-03-04 22:27:31 +1100
committernoname <[email protected]>2025-03-04 22:27:31 +1100
commit90019b99b671664855c1c53a30da39ca572f4a0e (patch)
tree6e3538ec998b6f54a0149a5a7fed38c23dc235f8 /lib/sway/window.vala
parente9a47074e874aaa08fa781375f00930783ba99a8 (diff)
implement containers and windows
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);
+ }
+ }
+}
+