aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/tree/container.h5
-rw-r--r--include/sway/tree/workspace.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 0283584b..6efda72f 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -45,6 +45,7 @@ enum sway_container_border {
struct sway_root;
struct sway_output;
+struct sway_workspace;
struct sway_view;
struct sway_container {
@@ -52,6 +53,7 @@ struct sway_container {
// TODO: Encapsulate state for other node types as well like C_CONTAINER
struct sway_root *sway_root;
struct sway_output *sway_output;
+ struct sway_workspace *sway_workspace;
struct sway_view *sway_view;
};
@@ -75,9 +77,6 @@ struct sway_container {
// does not include borders or gaps.
double width, height;
- // For C_WORKSPACE only
- struct sway_view *fullscreen;
-
list_t *children;
struct sway_container *parent;
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 8d49fefb..35e1df3b 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -3,6 +3,13 @@
#include "sway/tree/container.h"
+struct sway_view;
+
+struct sway_workspace {
+ struct sway_container *swayc;
+ struct sway_view *fullscreen;
+};
+
extern char *prev_workspace_name;
char *workspace_next_name(const char *output_name);