aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r--sway/tree/workspace.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index d14f01eb..00b479ec 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -520,13 +520,8 @@ struct sway_container *workspace_output_get_highest_available(
return NULL;
}
-static bool find_urgent_iterator(struct sway_container *con,
- void *data) {
- return con->type == C_VIEW && view_is_urgent(con->sway_view);
-}
-
void workspace_detect_urgent(struct sway_container *workspace) {
- bool new_urgent = container_find(workspace, find_urgent_iterator, NULL);
+ bool new_urgent = container_has_urgent_child(workspace);
if (workspace->sway_workspace->urgent != new_urgent) {
workspace->sway_workspace->urgent = new_urgent;