diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-16 13:15:35 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-16 13:15:35 +1000 |
commit | 5f0a4bb6a46cf359dd270e3c448ca1e112331f9d (patch) | |
tree | b6f9df379c05b5a1bda6010c9e3bab5ef8f9dfb0 /include/sway/tree | |
parent | Make container_for_each_descendant_dfs descend into floating views (diff) | |
download | sway-5f0a4bb6a46cf359dd270e3c448ca1e112331f9d.tar.gz sway-5f0a4bb6a46cf359dd270e3c448ca1e112331f9d.tar.zst sway-5f0a4bb6a46cf359dd270e3c448ca1e112331f9d.zip |
Update workspace urgent state when views close or move workspaces
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/workspace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index 8c2f4cd5..bc95317a 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -10,6 +10,7 @@ struct sway_workspace { | |||
10 | struct sway_view *fullscreen; | 10 | struct sway_view *fullscreen; |
11 | struct sway_container *floating; | 11 | struct sway_container *floating; |
12 | list_t *output_priority; | 12 | list_t *output_priority; |
13 | bool urgent; | ||
13 | }; | 14 | }; |
14 | 15 | ||
15 | extern char *prev_workspace_name; | 16 | extern char *prev_workspace_name; |
@@ -43,6 +44,6 @@ void workspace_output_add_priority(struct sway_container *workspace, | |||
43 | struct sway_container *workspace_output_get_highest_available( | 44 | struct sway_container *workspace_output_get_highest_available( |
44 | struct sway_container *ws, struct sway_container *exclude); | 45 | struct sway_container *ws, struct sway_container *exclude); |
45 | 46 | ||
46 | bool workspace_is_urgent(struct sway_container *workspace); | 47 | void workspace_detect_urgent(struct sway_container *workspace); |
47 | 48 | ||
48 | #endif | 49 | #endif |