sway

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

commit 91709bd12a88f668ce9a160e5dbecbbd77cef4bb
parent 61befb49f782f61e6bfb95fc2e13765887b97312
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  4 Aug 2016 21:34:39 -0400

Merge pull request #836 from acrisci/feature/ipc-recursive-workspace

ipc: recursive workspace containers in event
Diffstat:
Msway/ipc-server.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sway/ipc-server.c b/sway/ipc-server.c @@ -543,14 +543,14 @@ void ipc_event_workspace(swayc_t *old, swayc_t *new, const char *change) { json_object_object_add(obj, "change", json_object_new_string(change)); if (strcmp("focus", change) == 0) { if (old) { - json_object_object_add(obj, "old", ipc_json_describe_container(old)); + json_object_object_add(obj, "old", ipc_json_describe_container_recursive(old)); } else { json_object_object_add(obj, "old", NULL); } } if (new) { - json_object_object_add(obj, "current", ipc_json_describe_container(new)); + json_object_object_add(obj, "current", ipc_json_describe_container_recursive(new)); } else { json_object_object_add(obj, "current", NULL); }