mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix crash in ipc_json_describe_view
I didn't expect a function called ipc_json_describe_view to be passed a container which wasn't a view :\
This commit is contained in:
parent
a211daf9e6
commit
64e3bc3ab0
1 changed files with 4 additions and 2 deletions
|
@ -198,9 +198,11 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
|
||||||
json_object_new_string(ipc_json_layout_description(c->layout)));
|
json_object_new_string(ipc_json_layout_description(c->layout)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (c->type == C_VIEW) {
|
||||||
json_object_object_add(object, "urgent",
|
json_object_object_add(object, "urgent",
|
||||||
json_object_new_boolean(view_is_urgent(c->sway_view)));
|
json_object_new_boolean(view_is_urgent(c->sway_view)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void focus_inactive_children_iterator(struct sway_container *c, void *data) {
|
static void focus_inactive_children_iterator(struct sway_container *c, void *data) {
|
||||||
json_object *focus = data;
|
json_object *focus = data;
|
||||||
|
|
Loading…
Reference in a new issue