diff options
author | bR3iN <bR3iN@posteo.de> | 2021-10-28 15:31:23 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-10-29 13:37:58 +0200 |
commit | 9969de9e00a1ca89ded85d418a72c4ebbce91331 (patch) | |
tree | 28cf0f1d6e77e7e99a0df51c165e769a262b6920 /include | |
parent | fix cursor input for layer-shell surfaces (diff) | |
download | sway-9969de9e00a1ca89ded85d418a72c4ebbce91331.tar.gz sway-9969de9e00a1ca89ded85d418a72c4ebbce91331.tar.zst sway-9969de9e00a1ca89ded85d418a72c4ebbce91331.zip |
Add smart_gaps inverse_outer command
Add a subcommand for `smart_gaps` that enables outer gaps only
on workspaces with exactly one visible child.
Also add documentation for `smart_gaps toggle`.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 46dd4ffe..660245c1 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -283,6 +283,12 @@ struct side_gaps { | |||
283 | int left; | 283 | int left; |
284 | }; | 284 | }; |
285 | 285 | ||
286 | enum smart_gaps_mode { | ||
287 | SMART_GAPS_OFF, | ||
288 | SMART_GAPS_ON, | ||
289 | SMART_GAPS_INVERSE_OUTER, | ||
290 | }; | ||
291 | |||
286 | /** | 292 | /** |
287 | * Stores configuration for a workspace, regardless of whether the workspace | 293 | * Stores configuration for a workspace, regardless of whether the workspace |
288 | * exists. | 294 | * exists. |
@@ -512,7 +518,7 @@ struct sway_config { | |||
512 | bool tiling_drag; | 518 | bool tiling_drag; |
513 | int tiling_drag_threshold; | 519 | int tiling_drag_threshold; |
514 | 520 | ||
515 | bool smart_gaps; | 521 | enum smart_gaps_mode smart_gaps; |
516 | int gaps_inner; | 522 | int gaps_inner; |
517 | struct side_gaps gaps_outer; | 523 | struct side_gaps gaps_outer; |
518 | 524 | ||