mirror of
https://github.com/swaywm/sway.git
synced 2024-11-19 14:39:15 +00:00
Add 'visible' key to view json response
This commit is contained in:
parent
c2a3d6dd45
commit
6e55111cd3
|
@ -344,6 +344,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
|
||||||
json_object_object_add(object, "app_id",
|
json_object_object_add(object, "app_id",
|
||||||
app_id ? json_object_new_string(app_id) : NULL);
|
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();
|
json_object *marks = json_object_new_array();
|
||||||
list_t *con_marks = c->marks;
|
list_t *con_marks = c->marks;
|
||||||
for (int i = 0; i < con_marks->length; ++i) {
|
for (int i = 0; i < con_marks->length; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue