diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-29 10:54:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 10:54:22 -0400 |
commit | 86b8d036d41f20d6c5e4bf4cb686e917701c72b6 (patch) | |
tree | 5aa498b0d4ec3a215a3ea70f082e6ab1d9f361f2 /sway/ipc-json.c | |
parent | 3482eebaca090bff110199d5e00e59b4be376ff8 (diff) | |
parent | 6f4cb2b29d5a708d58a88c40ed6cc01bf471a8f0 (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.c | 2 |
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)); |