sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 50901a08928c448f03594adf6132727fcd9b7399
parent 76e5dffeaa41e62a8376e96f6b580290c77c6461
Author: Tony Crisci <tony@dubstepdish.com>
Date:   Thu,  4 Aug 2016 21:06:47 -0400

ipc: always include nodes in views

This is for i3 (and i3ipc library) compatability.

Diffstat:
Msway/ipc-json.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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) { c->is_floating ? "auto_on" : "auto_off")); // we can't state the cause json_object_object_add(object, "app_id", c->app_id ? json_object_new_string(c->app_id) : NULL); - // we do not include children, floating etc. as views have none + json_object_object_add(object, "nodes", json_object_new_array()); + json_object_object_add(object, "floating_nodes", json_object_new_array()); } json_object *ipc_json_describe_container(swayc_t *c) {