aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-06-07 19:36:16 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-06-08 13:08:00 -0400
commit5c9a917df9453f0463040b1164ba639b430f7833 (patch)
tree581a2b3056df2625de3d6dbcbb970b20fff260cb /include/sway/tree/workspace.h
parentMerge pull request #2121 from martinetd/swaylock-ctrl-u (diff)
downloadsway-5c9a917df9453f0463040b1164ba639b430f7833.tar.gz
sway-5c9a917df9453f0463040b1164ba639b430f7833.tar.zst
sway-5c9a917df9453f0463040b1164ba639b430f7833.zip
Restore workspaces to outputs based on priority
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r--include/sway/tree/workspace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 81321fc8..c72a4ac0 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -9,6 +9,7 @@ struct sway_workspace {
9 struct sway_container *swayc; 9 struct sway_container *swayc;
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}; 13};
13 14
14extern char *prev_workspace_name; 15extern char *prev_workspace_name;
@@ -33,4 +34,12 @@ bool workspace_is_visible(struct sway_container *ws);
33 34
34bool workspace_is_empty(struct sway_container *ws); 35bool workspace_is_empty(struct sway_container *ws);
35 36
37void workspace_output_raise_priority(struct sway_container *workspace,
38 struct sway_container *old_output, struct sway_container *new_output);
39
40void workspace_output_add_priority(struct sway_container *workspace,
41 struct sway_container *output);
42
43struct sway_container *workspace_output_get_highest_available(
44 struct sway_container *ws, struct sway_container *exclude);
36#endif 45#endif