mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
Add tree representation to IPC workspace description
This commit is contained in:
parent
3482eebaca
commit
6f4cb2b29d
3 changed files with 15 additions and 7 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue