diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-29 21:45:18 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-29 21:45:18 -0400 |
commit | 64225b1137f1dccb196de404105aeb45616ea988 (patch) | |
tree | 62668d1e573c2b7a898b39abf8c8f6cacf2d4367 | |
parent | 3b90b556668376256294c71915327999a688a65e (diff) |
Send IPC layout of node itself
-rw-r--r-- | sway/ipc-json.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index d2aee9a9..03582950 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -160,12 +160,8 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object json_object_object_add(object, "type", json_object_new_string("con")); if (c->parent) { - enum sway_container_layout layout = - (c->parent->type == C_CONTAINER && c->type == C_VIEW) ? - c->parent->layout : c->layout; - json_object_object_add(object, "layout", - json_object_new_string(ipc_json_layout_description(layout))); + json_object_new_string(ipc_json_layout_description(c->layout))); } } |