Update workspace urgent state when views close or move workspaces

This commit is contained in:
Ryan Dwyer 2018-07-16 13:15:35 +10:00
parent 560627437b
commit 5f0a4bb6a4
6 changed files with 31 additions and 7 deletions

View file

@ -171,7 +171,7 @@ static void ipc_json_describe_workspace(struct sway_container *workspace,
json_object_new_string(workspace->parent->name) : NULL);
json_object_object_add(object, "type", json_object_new_string("workspace"));
json_object_object_add(object, "urgent",
json_object_new_boolean(workspace_is_urgent(workspace)));
json_object_new_boolean(workspace->sway_workspace->urgent));
json_object_object_add(object, "representation", workspace->formatted_title ?
json_object_new_string(workspace->formatted_title) : NULL);