aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-16 14:30:31 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-16 14:30:31 +1000
commitbe28c18ad5a3271aad537a5356662d57f16d9703 (patch)
tree3b83225ea6ccb895c7ac83e0f9f578317a88e3e0 /sway/tree/container.c
parentUpdate workspace urgent state when views close or move workspaces (diff)
downloadsway-be28c18ad5a3271aad537a5356662d57f16d9703.tar.gz
sway-be28c18ad5a3271aad537a5356662d57f16d9703.tar.zst
sway-be28c18ad5a3271aad537a5356662d57f16d9703.zip
Mark containers as urgent in IPC if they have urgent views
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index c1de46b5..6d52c38c 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1082,3 +1082,12 @@ void container_set_dirty(struct sway_container *container) {
1082 container->dirty = true; 1082 container->dirty = true;
1083 list_add(server.dirty_containers, container); 1083 list_add(server.dirty_containers, container);
1084} 1084}
1085
1086static bool find_urgent_iterator(struct sway_container *con,
1087 void *data) {
1088 return con->type == C_VIEW && view_is_urgent(con->sway_view);
1089}
1090
1091bool container_has_urgent_child(struct sway_container *container) {
1092 return container_find(container, find_urgent_iterator, NULL);
1093}