diff options
author | 2018-06-09 08:43:57 +1000 | |
---|---|---|
committer | 2018-06-09 08:43:57 +1000 | |
commit | 0b798ed9543d55bd39782c3a4a4bc1789acd40d3 (patch) | |
tree | 1ef7bdd44c5b7684e2c5e7118d5b7ffdda1e4ba6 /include/sway | |
parent | Merge pull request #2121 from martinetd/swaylock-ctrl-u (diff) | |
parent | Switch restore workspaces to a nested for-loop (diff) | |
download | sway-0b798ed9543d55bd39782c3a4a4bc1789acd40d3.tar.gz sway-0b798ed9543d55bd39782c3a4a4bc1789acd40d3.tar.zst sway-0b798ed9543d55bd39782c3a4a4bc1789acd40d3.zip |
Merge pull request #2115 from RedSoxFan/restore-workspaces
Restore workspaces to output when re-enabled
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/tree/workspace.h | 9 |
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 | ||
14 | extern char *prev_workspace_name; | 15 | extern char *prev_workspace_name; |
@@ -33,4 +34,12 @@ bool workspace_is_visible(struct sway_container *ws); | |||
33 | 34 | ||
34 | bool workspace_is_empty(struct sway_container *ws); | 35 | bool workspace_is_empty(struct sway_container *ws); |
35 | 36 | ||
37 | void workspace_output_raise_priority(struct sway_container *workspace, | ||
38 | struct sway_container *old_output, struct sway_container *new_output); | ||
39 | |||
40 | void workspace_output_add_priority(struct sway_container *workspace, | ||
41 | struct sway_container *output); | ||
42 | |||
43 | struct sway_container *workspace_output_get_highest_available( | ||
44 | struct sway_container *ws, struct sway_container *exclude); | ||
36 | #endif | 45 | #endif |