Update workspace urgent state when views close or move workspaces

This commit is contained in:
Ryan Dwyer 2018-07-16 13:15:35 +10:00
parent 560627437b
commit 5f0a4bb6a4
6 changed files with 31 additions and 7 deletions

View file

@ -10,6 +10,7 @@ struct sway_workspace {
struct sway_view *fullscreen;
struct sway_container *floating;
list_t *output_priority;
bool urgent;
};
extern char *prev_workspace_name;
@ -43,6 +44,6 @@ void workspace_output_add_priority(struct sway_container *workspace,
struct sway_container *workspace_output_get_highest_available(
struct sway_container *ws, struct sway_container *exclude);
bool workspace_is_urgent(struct sway_container *workspace);
void workspace_detect_urgent(struct sway_container *workspace);
#endif