commit f1d8ba69a645b7b7ae1d59a0f4df9cb24c266182
parent 176832fe30576ccfbb7dee3d9e600e56abf21da1
Author: emersion <contact@emersion.fr>
Date: Sat, 6 Oct 2018 19:45:54 +0200
Merge pull request #2779 from ianyfan/ipc
ipc: set "type" of floating containers to "floating_con"
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
@@ -273,7 +273,8 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
static void ipc_json_describe_container(struct sway_container *c, json_object *object) {
json_object_object_add(object, "name",
c->title ? json_object_new_string(c->title) : NULL);
- json_object_object_add(object, "type", json_object_new_string("con"));
+ json_object_object_add(object, "type",
+ json_object_new_string(container_is_floating(c) ? "floating_con" : "con"));
json_object_object_add(object, "layout",
json_object_new_string(ipc_json_layout_description(c->layout)));