mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
commands: gaps: Always apply default gaps config.
This commit is contained in:
parent
5c1e20b6ff
commit
936f8c24e0
1 changed files with 1 additions and 6 deletions
|
@ -770,12 +770,7 @@ static struct cmd_results *cmd_gaps(int argc, char **argv) {
|
|||
errno = 0;
|
||||
return cmd_results_new(CMD_INVALID, "gaps", "Number is out out of range.");
|
||||
}
|
||||
if (config->gaps_inner == 0) {
|
||||
config->gaps_inner = amount;
|
||||
}
|
||||
if (config->gaps_outer == 0) {
|
||||
config->gaps_outer = amount;
|
||||
}
|
||||
config->gaps_inner = config->gaps_outer = amount;
|
||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||
}
|
||||
// gaps inner|outer n
|
||||
|
|
Loading…
Reference in a new issue