summaryrefslogtreecommitdiff
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-07-16 08:13:58 +1000
committerRyan Dwyer <[email protected]>2018-07-16 08:19:25 +1000
commitf86087d78f25575ddadaa4d3496b34e62b545d2e (patch)
tree07165fbc33946c7c334cc88ac0919e9ce6ba1595 /sway/ipc-json.c
parent315d5311b2004b9e148e7b52a7de161b6dfe3878 (diff)
Fix urgency IPC events
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 8c48e724..f9182291 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -197,6 +197,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
json_object_object_add(object, "layout",
json_object_new_string(ipc_json_layout_description(c->layout)));
}
+
+ json_object_object_add(object, "urgent",
+ json_object_new_boolean(view_is_urgent(c->sway_view)));
}
static void focus_inactive_children_iterator(struct sway_container *c, void *data) {