diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-10-01 12:56:27 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-10-01 21:19:06 -0400 |
commit | bb25194844599bb653a78633c9c09c0c0ff225ee (patch) | |
tree | a19bcbc62ff5d4ddcb822914a4f3516c7766406a /sway/commands.c | |
parent | Merge pull request #2739 from RedSoxFan/fix-2653 (diff) | |
download | sway-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/commands.c')
-rw-r--r-- | sway/commands.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 03cfebd7..72db8ab9 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -110,6 +110,7 @@ static struct cmd_handler handlers[] = { | |||
110 | { "seat", cmd_seat }, | 110 | { "seat", cmd_seat }, |
111 | { "set", cmd_set }, | 111 | { "set", cmd_set }, |
112 | { "show_marks", cmd_show_marks }, | 112 | { "show_marks", cmd_show_marks }, |
113 | { "smart_borders", cmd_smart_borders }, | ||
113 | { "smart_gaps", cmd_smart_gaps }, | 114 | { "smart_gaps", cmd_smart_gaps }, |
114 | { "tiling_drag", cmd_tiling_drag }, | 115 | { "tiling_drag", cmd_tiling_drag }, |
115 | { "workspace", cmd_workspace }, | 116 | { "workspace", cmd_workspace }, |