mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
Fix layout in -t get_tree
This commit is contained in:
parent
103a302fa4
commit
f5e44d4b2c
1 changed files with 2 additions and 1 deletions
|
@ -160,7 +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"));
|
json_object_object_add(object, "type", json_object_new_string("con"));
|
||||||
|
|
||||||
if (c->parent) {
|
if (c->parent) {
|
||||||
enum sway_container_layout layout = (c->parent->type == C_CONTAINER) ?
|
enum sway_container_layout layout =
|
||||||
|
(c->parent->type == C_CONTAINER && c->type == C_VIEW) ?
|
||||||
c->parent->layout : c->layout;
|
c->parent->layout : c->layout;
|
||||||
|
|
||||||
json_object_object_add(object, "layout",
|
json_object_object_add(object, "layout",
|
||||||
|
|
Loading…
Reference in a new issue