mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
Implement urgency base functionality
Introduces a command to manually set urgency, as well as rendering of urgent views, sending the IPC event, removing urgency after focused for one second, and matching urgent views via criteria.
This commit is contained in:
parent
b314a8f2cc
commit
315d5311b2
12 changed files with 170 additions and 7 deletions
|
|
@ -170,7 +170,8 @@ static void ipc_json_describe_workspace(struct sway_container *workspace,
|
|||
json_object_object_add(object, "output", workspace->parent ?
|
||||
json_object_new_string(workspace->parent->name) : NULL);
|
||||
json_object_object_add(object, "type", json_object_new_string("workspace"));
|
||||
json_object_object_add(object, "urgent", json_object_new_boolean(false));
|
||||
json_object_object_add(object, "urgent",
|
||||
json_object_new_boolean(workspace_is_urgent(workspace)));
|
||||
json_object_object_add(object, "representation", workspace->formatted_title ?
|
||||
json_object_new_string(workspace->formatted_title) : NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue