aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 38aa7a8d..1debca7b 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -204,7 +204,8 @@ static void ipc_json_describe_view(swayc_t *c, json_object *object) {
204 c->is_floating ? "auto_on" : "auto_off")); // we can't state the cause 204 c->is_floating ? "auto_on" : "auto_off")); // we can't state the cause
205 205
206 json_object_object_add(object, "app_id", c->app_id ? json_object_new_string(c->app_id) : NULL); 206 json_object_object_add(object, "app_id", c->app_id ? json_object_new_string(c->app_id) : NULL);
207 // we do not include children, floating etc. as views have none 207 json_object_object_add(object, "nodes", json_object_new_array());
208 json_object_object_add(object, "floating_nodes", json_object_new_array());
208} 209}
209 210
210json_object *ipc_json_describe_container(swayc_t *c) { 211json_object *ipc_json_describe_container(swayc_t *c) {
@@ -214,7 +215,7 @@ json_object *ipc_json_describe_container(swayc_t *c) {
214 215
215 json_object *object = json_object_new_object(); 216 json_object *object = json_object_new_object();
216 217
217 json_object_object_add(object, "id", json_object_new_int((intptr_t)&c)); 218 json_object_object_add(object, "id", json_object_new_int((uintptr_t)&c));
218 json_object_object_add(object, "name", (c->name) ? json_object_new_string(c->name) : NULL); 219 json_object_object_add(object, "name", (c->name) ? json_object_new_string(c->name) : NULL);
219 json_object_object_add(object, "rect", ipc_json_create_rect(c)); 220 json_object_object_add(object, "rect", ipc_json_create_rect(c));
220 json_object_object_add(object, "visible", json_object_new_boolean(c->visible)); 221 json_object_object_add(object, "visible", json_object_new_boolean(c->visible));