diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-08-04 21:24:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-04 21:24:36 -0400 |
commit | 61befb49f782f61e6bfb95fc2e13765887b97312 (patch) | |
tree | f435b139e39aa8e1e1268c90583abb5743eb3e07 | |
parent | Merge pull request #834 from Hummer12007/swapfix (diff) | |
parent | ipc: always include nodes in views (diff) | |
download | sway-61befb49f782f61e6bfb95fc2e13765887b97312.tar.gz sway-61befb49f782f61e6bfb95fc2e13765887b97312.tar.zst sway-61befb49f782f61e6bfb95fc2e13765887b97312.zip |
Merge pull request #835 from acrisci/feature/ipc-view-include-nodes
ipc: always include nodes in views
-rw-r--r-- | sway/ipc-json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 2d3f4601..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 | ||
210 | json_object *ipc_json_describe_container(swayc_t *c) { | 211 | json_object *ipc_json_describe_container(swayc_t *c) { |