aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2016-08-04 21:15:06 -0400
committerTony Crisci <tony@dubstepdish.com>2016-08-04 21:26:39 -0400
commite1e15bb43e70705e55f981445a2b6ad1c3acfd18 (patch)
treeeca4640af5336685d59c5f3f340a9eaa95a83d7a /sway/ipc-server.c
parent61befb49f782f61e6bfb95fc2e13765887b97312 (diff)
ipc: recursive workspace containers in event
Recursively describe workspace containers in the workspace event. This is for compatability with i3 and i3ipc libraries.
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 326b309f..c189bc0f 100644
--- 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);
}