diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-11-08 22:41:14 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-11-08 22:41:14 +1000 |
| commit | c6017c1172cc6269efd33575da1b7eedf7f78393 (patch) | |
| tree | 843a3d538ae4176884b43f111b6330a4935496e3 /include | |
| parent | 9169a21b059d9277caad5885238d6ef75b5b5645 (diff) | |
| parent | 6ff494abe9c24a7d1e955219de55c67784a44f7a (diff) | |
Merge pull request #3087 from RedSoxFan/side-gaps
Implement per side and per direction outer gaps
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/config.h | 14 | ||||
| -rw-r--r-- | include/sway/tree/workspace.h | 4 |
2 files changed, 14 insertions, 4 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/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 |
