diff options
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r-- | include/sway/tree/workspace.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index fdd92f64..58bde20c 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -2,6 +2,8 @@ | |||
2 | #define _SWAY_WORKSPACE_H | 2 | #define _SWAY_WORKSPACE_H |
3 | 3 | ||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | #include <wlr/types/wlr_scene.h> | ||
6 | #include "sway/config.h" | ||
5 | #include "sway/tree/container.h" | 7 | #include "sway/tree/container.h" |
6 | #include "sway/tree/node.h" | 8 | #include "sway/tree/node.h" |
7 | 9 | ||
@@ -22,6 +24,12 @@ struct sway_workspace_state { | |||
22 | 24 | ||
23 | struct sway_workspace { | 25 | struct sway_workspace { |
24 | struct sway_node node; | 26 | struct sway_node node; |
27 | |||
28 | struct { | ||
29 | struct wlr_scene_tree *tiling; | ||
30 | struct wlr_scene_tree *fullscreen; | ||
31 | } layers; | ||
32 | |||
25 | struct sway_container *fullscreen; | 33 | struct sway_container *fullscreen; |
26 | 34 | ||
27 | char *name; | 35 | char *name; |
@@ -60,20 +68,20 @@ void workspace_consider_destroy(struct sway_workspace *ws); | |||
60 | 68 | ||
61 | char *workspace_next_name(const char *output_name); | 69 | char *workspace_next_name(const char *output_name); |
62 | 70 | ||
63 | bool workspace_switch(struct sway_workspace *workspace, | 71 | struct sway_workspace *workspace_auto_back_and_forth( |
64 | bool no_auto_back_and_forth); | 72 | struct sway_workspace *workspace); |
73 | |||
74 | bool workspace_switch(struct sway_workspace *workspace); | ||
65 | 75 | ||
66 | struct sway_workspace *workspace_by_number(const char* name); | 76 | struct sway_workspace *workspace_by_number(const char* name); |
67 | 77 | ||
68 | struct sway_workspace *workspace_by_name(const char*); | 78 | struct sway_workspace *workspace_by_name(const char*); |
69 | 79 | ||
70 | struct sway_workspace *workspace_output_next( | 80 | struct sway_workspace *workspace_output_next(struct sway_workspace *current); |
71 | struct sway_workspace *current, bool create); | ||
72 | 81 | ||
73 | struct sway_workspace *workspace_next(struct sway_workspace *current); | 82 | struct sway_workspace *workspace_next(struct sway_workspace *current); |
74 | 83 | ||
75 | struct sway_workspace *workspace_output_prev( | 84 | struct sway_workspace *workspace_output_prev(struct sway_workspace *current); |
76 | struct sway_workspace *current, bool create); | ||
77 | 85 | ||
78 | struct sway_workspace *workspace_prev(struct sway_workspace *current); | 86 | struct sway_workspace *workspace_prev(struct sway_workspace *current); |
79 | 87 | ||