aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-16 13:15:35 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-16 13:15:35 +1000
commit5f0a4bb6a46cf359dd270e3c448ca1e112331f9d (patch)
treeb6f9df379c05b5a1bda6010c9e3bab5ef8f9dfb0 /sway/ipc-json.c
parentMake container_for_each_descendant_dfs descend into floating views (diff)
downloadsway-5f0a4bb6a46cf359dd270e3c448ca1e112331f9d.tar.gz
sway-5f0a4bb6a46cf359dd270e3c448ca1e112331f9d.tar.zst
sway-5f0a4bb6a46cf359dd270e3c448ca1e112331f9d.zip
Update workspace urgent state when views close or move workspaces
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index f8de51ed..dbab8e68 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -171,7 +171,7 @@ static void ipc_json_describe_workspace(struct sway_container *workspace,
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", 173 json_object_object_add(object, "urgent",
174 json_object_new_boolean(workspace_is_urgent(workspace))); 174 json_object_new_boolean(workspace->sway_workspace->urgent));
175 json_object_object_add(object, "representation", workspace->formatted_title ? 175 json_object_object_add(object, "representation", workspace->formatted_title ?
176 json_object_new_string(workspace->formatted_title) : NULL); 176 json_object_new_string(workspace->formatted_title) : NULL);
177 177