diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-10-06 18:11:05 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-10-06 18:11:05 +0100 |
commit | 2cda0b1fe16be54ca38eb8924874d2f6fbdf6071 (patch) | |
tree | 84f52b5e53457d8c375fb2ce308c5ac1faebf19a /sway | |
parent | 176832fe30576ccfbb7dee3d9e600e56abf21da1 (diff) |
ipc: set "type" of floating containers to "floating_con"
Diffstat (limited to 'sway')
-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 bc36f9b1..7c5a0a5d 100644 --- 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))); |