aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-29 10:54:22 -0400
committerGitHub <noreply@github.com>2018-05-29 10:54:22 -0400
commit86b8d036d41f20d6c5e4bf4cb686e917701c72b6 (patch)
tree5aa498b0d4ec3a215a3ea70f082e6ab1d9f361f2 /sway/ipc-json.c
parent3482eebaca090bff110199d5e00e59b4be376ff8 (diff)
parent6f4cb2b29d5a708d58a88c40ed6cc01bf471a8f0 (diff)
Merge pull request #2069 from RyanDwyer/ipc-workspace-representation
Add tree representation to IPC workspace description
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index ad37216f..0233a36e 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -147,6 +147,8 @@ static void ipc_json_describe_workspace(struct sway_container *workspace,
json_object_new_string(workspace->parent->name) : NULL);
json_object_object_add(object, "type", json_object_new_string("workspace"));
json_object_object_add(object, "urgent", json_object_new_boolean(false));
+ json_object_object_add(object, "representation", workspace->formatted_title ?
+ json_object_new_string(workspace->formatted_title) : NULL);
const char *layout = ipc_json_layout_description(workspace->layout);
json_object_object_add(object, "layout", json_object_new_string(layout));