diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-15 22:43:33 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-16 08:19:25 +1000 |
commit | 315d5311b2004b9e148e7b52a7de161b6dfe3878 (patch) | |
tree | 1a70d1d73cbffb26bf432c1c7b395ee996651ad3 /sway/ipc-json.c | |
parent | Merge pull request #2280 from ianyfan/leaks (diff) | |
download | sway-315d5311b2004b9e148e7b52a7de161b6dfe3878.tar.gz sway-315d5311b2004b9e148e7b52a7de161b6dfe3878.tar.zst sway-315d5311b2004b9e148e7b52a7de161b6dfe3878.zip |
Implement urgency base functionality
Introduces a command to manually set urgency, as well as rendering of
urgent views, sending the IPC event, removing urgency after focused for
one second, and matching urgent views via criteria.
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 3d0e88f0..8c48e724 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -170,7 +170,8 @@ static void ipc_json_describe_workspace(struct sway_container *workspace, | |||
170 | json_object_object_add(object, "output", workspace->parent ? | 170 | json_object_object_add(object, "output", workspace->parent ? |
171 | json_object_new_string(workspace->parent->name) : NULL); | 171 | json_object_new_string(workspace->parent->name) : NULL); |
172 | json_object_object_add(object, "type", json_object_new_string("workspace")); | 172 | json_object_object_add(object, "type", json_object_new_string("workspace")); |
173 | json_object_object_add(object, "urgent", json_object_new_boolean(false)); | 173 | json_object_object_add(object, "urgent", |
174 | json_object_new_boolean(workspace_is_urgent(workspace))); | ||
174 | json_object_object_add(object, "representation", workspace->formatted_title ? | 175 | json_object_object_add(object, "representation", workspace->formatted_title ? |
175 | json_object_new_string(workspace->formatted_title) : NULL); | 176 | json_object_new_string(workspace->formatted_title) : NULL); |
176 | 177 | ||