aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-01 12:56:27 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-01 21:19:06 -0400
commitbb25194844599bb653a78633c9c09c0c0ff225ee (patch)
treea19bcbc62ff5d4ddcb822914a4f3516c7766406a /sway/config.c
parentMerge pull request #2739 from RedSoxFan/fix-2653 (diff)
downloadsway-bb25194844599bb653a78633c9c09c0c0ff225ee.tar.gz
sway-bb25194844599bb653a78633c9c09c0c0ff225ee.tar.zst
sway-bb25194844599bb653a78633c9c09c0c0ff225ee.zip
Handle border options for gaps
Fixes `hide_edge_borders smart` when gaps are in use. Implements `hide_edge_borders smart_no_gaps` and `smart_borders on|no_gaps|off`. Since `smart_borders on` is equivalent to `hide_edge_borders smart` and `smart_borders no_gaps` is equivalent to `hide_edge_borders smart_no_gaps`, I opted to just save the last value set for `hide_edge_borders` and restore that on `smart_borders off`. This simplifies the conditions for setting the border.
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 1e08559d..048b57de 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -249,6 +249,7 @@ static void config_defaults(struct sway_config *config) {
249 config->border_thickness = 2; 249 config->border_thickness = 2;
250 config->floating_border_thickness = 2; 250 config->floating_border_thickness = 2;
251 config->hide_edge_borders = E_NONE; 251 config->hide_edge_borders = E_NONE;
252 config->saved_edge_borders = E_NONE;
252 253
253 // border colors 254 // border colors
254 set_color(config->border_colors.focused.border, 0x4C7899); 255 set_color(config->border_colors.focused.border, 0x4C7899);