diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-29 11:21:18 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-05-29 11:21:55 -0400 |
commit | f5e44d4b2c5711862c4bffb37bc15899678c6c19 (patch) | |
tree | 0b2a04520c568ec43e8c2a44ed24f8e0cc842184 | |
parent | Fix moving out of a tabbed/stacked workspace (diff) | |
download | sway-f5e44d4b2c5711862c4bffb37bc15899678c6c19.tar.gz sway-f5e44d4b2c5711862c4bffb37bc15899678c6c19.tar.zst sway-f5e44d4b2c5711862c4bffb37bc15899678c6c19.zip |
Fix layout in -t get_tree
-rw-r--r-- | sway/ipc-json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 0233a36e..d2aee9a9 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -160,7 +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) ? | 163 | enum sway_container_layout layout = |
164 | (c->parent->type == C_CONTAINER && c->type == C_VIEW) ? | ||
164 | c->parent->layout : c->layout; | 165 | c->parent->layout : c->layout; |
165 | 166 | ||
166 | json_object_object_add(object, "layout", | 167 | json_object_object_add(object, "layout", |