mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Mark containers as urgent in IPC if they have urgent views
This commit is contained in:
parent
5f0a4bb6a4
commit
be28c18ad5
4 changed files with 15 additions and 10 deletions
|
|
@ -1082,3 +1082,12 @@ void container_set_dirty(struct sway_container *container) {
|
|||
container->dirty = true;
|
||||
list_add(server.dirty_containers, container);
|
||||
}
|
||||
|
||||
static bool find_urgent_iterator(struct sway_container *con,
|
||||
void *data) {
|
||||
return con->type == C_VIEW && view_is_urgent(con->sway_view);
|
||||
}
|
||||
|
||||
bool container_has_urgent_child(struct sway_container *container) {
|
||||
return container_find(container, find_urgent_iterator, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue