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

This commit is contained in:
S. Christoffer Eliesen 2015-11-04 01:27:24 +01:00
parent 936f8c24e0
commit eeec0fda8a
1 changed files with 2 additions and 0 deletions

View File

@ -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