summaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 876fc87c..6bd5204c 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -188,6 +188,8 @@ static void ipc_json_describe_view(swayc_t *c, json_object *object) {
188 json_object_object_add(object, "window", json_object_new_int(c->handle)); // for the sake of i3 compat 188 json_object_object_add(object, "window", json_object_new_int(c->handle)); // for the sake of i3 compat
189 json_object_object_add(props, "class", c->class ? json_object_new_string(c->class) : 189 json_object_object_add(props, "class", c->class ? json_object_new_string(c->class) :
190 c->app_id ? json_object_new_string(c->app_id) : NULL); 190 c->app_id ? json_object_new_string(c->app_id) : NULL);
191 json_object_object_add(props, "instance", c->instance ? json_object_new_string(c->instance) :
192 c->app_id ? json_object_new_string(c->app_id) : NULL);
191 json_object_object_add(props, "title", (c->name) ? json_object_new_string(c->name) : NULL); 193 json_object_object_add(props, "title", (c->name) ? json_object_new_string(c->name) : NULL);
192 json_object_object_add(props, "transient_for", parent ? json_object_new_int(parent) : NULL); 194 json_object_object_add(props, "transient_for", parent ? json_object_new_int(parent) : NULL);
193 json_object_object_add(object, "window_properties", props); 195 json_object_object_add(object, "window_properties", props);