diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-01-05 18:33:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 18:33:43 -0500 |
commit | 58df28a54de7f8cca901db831056ff8d2fc0d3b3 (patch) | |
tree | d45e63d0bcf32ce26176f2926bf8fc6b4e66d654 | |
parent | 31d60b50ca3836613f30054efa1e275d8f976f22 (diff) | |
parent | d59af31256363c38f260fd69ec40c209ff632c10 (diff) |
Merge pull request #1030 from Hummer12007/patch-2
Fix workspace layouts in json data
-rw-r--r-- | sway/ipc-json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index fd17216e..876fc87c 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -132,7 +132,7 @@ static void ipc_json_describe_output(swayc_t *output, json_object *object) { static void ipc_json_describe_workspace(swayc_t *workspace, json_object *object) { int num = (isdigit(workspace->name[0])) ? atoi(workspace->name) : -1; - const char *layout = ipc_json_layout_description(workspace->layout); + const char *layout = ipc_json_layout_description(workspace->workspace_layout); json_object_object_add(object, "num", json_object_new_int(num)); json_object_object_add(object, "output", (workspace->parent) ? json_object_new_string(workspace->parent->name) : NULL); @@ -173,7 +173,7 @@ static void ipc_json_describe_view(swayc_t *c, json_object *object) { json_object_object_add(object, "last_split_layout", (strcmp(last_layout, "null") == 0) ? NULL : json_object_new_string(last_layout)); json_object_object_add(object, "workspace_layout", - json_object_new_string(ipc_json_layout_description(swayc_parent_by_type(c, C_WORKSPACE)->layout))); + json_object_new_string(ipc_json_layout_description(swayc_parent_by_type(c, C_WORKSPACE)->workspace_layout))); json_object_object_add(object, "border", json_object_new_string(ipc_json_border_description(c))); json_object_object_add(object, "current_border_width", json_object_new_int(c->border_thickness)); |