diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/ipc-json.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index f9182291..f8de51ed 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -198,8 +198,10 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object | |||
198 | json_object_new_string(ipc_json_layout_description(c->layout))); | 198 | json_object_new_string(ipc_json_layout_description(c->layout))); |
199 | } | 199 | } |
200 | 200 | ||
201 | json_object_object_add(object, "urgent", | 201 | if (c->type == C_VIEW) { |
202 | json_object_new_boolean(view_is_urgent(c->sway_view))); | 202 | json_object_object_add(object, "urgent", |
203 | json_object_new_boolean(view_is_urgent(c->sway_view))); | ||
204 | } | ||
203 | } | 205 | } |
204 | 206 | ||
205 | static void focus_inactive_children_iterator(struct sway_container *c, void *data) { | 207 | static void focus_inactive_children_iterator(struct sway_container *c, void *data) { |