mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 04:54:14 +01:00
Send IPC layout of node itself
This commit is contained in:
parent
3b90b55666
commit
64225b1137
@ -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"));
|
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 && c->type == C_VIEW) ?
|
|
||||||
c->parent->layout : c->layout;
|
|
||||||
|
|
||||||
json_object_object_add(object, "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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user