diff options
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 0233a36e..03582950 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -160,11 +160,8 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object | |||
160 | json_object_object_add(object, "type", json_object_new_string("con")); | 160 | json_object_object_add(object, "type", json_object_new_string("con")); |
161 | 161 | ||
162 | if (c->parent) { | 162 | if (c->parent) { |
163 | enum sway_container_layout layout = (c->parent->type == C_CONTAINER) ? | ||
164 | c->parent->layout : c->layout; | ||
165 | |||
166 | json_object_object_add(object, "layout", | 163 | json_object_object_add(object, "layout", |
167 | json_object_new_string(ipc_json_layout_description(layout))); | 164 | json_object_new_string(ipc_json_layout_description(c->layout))); |
168 | } | 165 | } |
169 | } | 166 | } |
170 | 167 | ||