diff options
| author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2019-02-18 13:57:16 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2019-02-25 17:10:04 -0500 |
| commit | 6e55111cd3c042d97c434ae37f8e0d30c7f697ca (patch) | |
| tree | 1090c6d162283f982253f257541d593694f2c379 | |
| parent | c2a3d6dd45212d0b01920c0a5fc9608ef35e8056 (diff) | |
Add 'visible' key to view json response
| -rw-r--r-- | sway/ipc-json.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 23016dbd..6d36c727 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -344,6 +344,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object json_object_object_add(object, "app_id", app_id ? json_object_new_string(app_id) : NULL); + bool visible = view_is_visible(c->view); + json_object_object_add(object, "visible", json_object_new_boolean(visible)); + json_object *marks = json_object_new_array(); list_t *con_marks = c->marks; for (int i = 0; i < con_marks->length; ++i) { |
