sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit eeec0fda8a856d67b7ddf4432a504589989e20e2
parent 936f8c24e076189b8a70d4fcc4854f94346c18fe
Author: S. Christoffer Eliesen <christoffer@eliesen.no>
Date:   Wed,  4 Nov 2015 01:27:24 +0100

commands: gaps: Re-arrange windows after changing default gaps.

Diffstat:
Msway/commands.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -771,6 +771,7 @@ static struct cmd_results *cmd_gaps(int argc, char **argv) { return cmd_results_new(CMD_INVALID, "gaps", "Number is out out of range."); } config->gaps_inner = config->gaps_outer = amount; + arrange_windows(&root_container, -1, -1); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } // gaps inner|outer n @@ -786,6 +787,7 @@ static struct cmd_results *cmd_gaps(int argc, char **argv) { } else if (strcasecmp(target_str, "outer") == 0) { config->gaps_outer = amount; } + arrange_windows(&root_container, -1, -1); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } // gaps inner|outer current|all set|plus|minus n