aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-16 13:15:35 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-16 13:15:35 +1000
commit5f0a4bb6a46cf359dd270e3c448ca1e112331f9d (patch)
treeb6f9df379c05b5a1bda6010c9e3bab5ef8f9dfb0 /include/sway/tree/workspace.h
parentMake container_for_each_descendant_dfs descend into floating views (diff)
downloadsway-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/workspace.h')
-rw-r--r--include/sway/tree/workspace.h3
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
15extern char *prev_workspace_name; 16extern char *prev_workspace_name;
@@ -43,6 +44,6 @@ void workspace_output_add_priority(struct sway_container *workspace,
43struct sway_container *workspace_output_get_highest_available( 44struct 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
46bool workspace_is_urgent(struct sway_container *workspace); 47void workspace_detect_urgent(struct sway_container *workspace);
47 48
48#endif 49#endif