aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h14
-rw-r--r--include/sway/tree/container.h7
-rw-r--r--include/sway/tree/workspace.h4
3 files changed, 20 insertions, 5 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 0912bc73..cd56c3dc 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -168,6 +168,16 @@ struct output_config {
};
/**
+ * Stores size of gaps for each side
+ */
+struct side_gaps {
+ int top;
+ int right;
+ int bottom;
+ int left;
+};
+
+/**
* Stores configuration for a workspace, regardless of whether the workspace
* exists.
*/
@@ -175,7 +185,7 @@ struct workspace_config {
char *workspace;
char *output;
int gaps_inner;
- int gaps_outer;
+ struct side_gaps gaps_outer;
};
struct bar_config {
@@ -398,7 +408,7 @@ struct sway_config {
bool smart_gaps;
int gaps_inner;
- int gaps_outer;
+ struct side_gaps gaps_outer;
list_t *config_chain;
const char *current_config_path;
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 4366a010..d3155eb3 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -104,7 +104,12 @@ struct sway_container {
bool border_right;
// The gaps currently applied to the container.
- double current_gaps;
+ struct {
+ int top;
+ int right;
+ int bottom;
+ int left;
+ } current_gaps;
struct sway_workspace *workspace; // NULL when hidden in the scratchpad
struct sway_container *parent; // NULL if container in root of workspace
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index b5ae92f3..7abfbff1 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -32,9 +32,9 @@ struct sway_workspace {
enum sway_container_layout layout;
enum sway_container_layout prev_split_layout;
- int current_gaps;
+ struct side_gaps current_gaps;
int gaps_inner;
- int gaps_outer;
+ struct side_gaps gaps_outer;
struct sway_output *output; // NULL if no outputs are connected
list_t *floating; // struct sway_container