mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -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
|
|
@ -198,10 +198,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
|
|||
json_object_new_string(ipc_json_layout_description(c->layout)));
|
||||
}
|
||||
|
||||
if (c->type == C_VIEW) {
|
||||
json_object_object_add(object, "urgent",
|
||||
json_object_new_boolean(view_is_urgent(c->sway_view)));
|
||||
}
|
||||
bool urgent = c->type == C_VIEW ?
|
||||
view_is_urgent(c->sway_view) : container_has_urgent_child(c);
|
||||
json_object_object_add(object, "urgent", json_object_new_boolean(urgent));
|
||||
}
|
||||
|
||||
static void focus_inactive_children_iterator(struct sway_container *c, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue