diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-04 01:27:02 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-04 01:32:37 +0100 |
commit | 936f8c24e076189b8a70d4fcc4854f94346c18fe (patch) | |
tree | 8e7d84433af47673a3db899f1860a7020e900af0 | |
parent | commands: gaps: Accept zero value. (diff) | |
download | sway-936f8c24e076189b8a70d4fcc4854f94346c18fe.tar.gz sway-936f8c24e076189b8a70d4fcc4854f94346c18fe.tar.zst sway-936f8c24e076189b8a70d4fcc4854f94346c18fe.zip |
commands: gaps: Always apply default gaps config.
-rw-r--r-- | sway/commands.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sway/commands.c b/sway/commands.c index 7bfb71ba..9d4f74aa 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -770,12 +770,7 @@ static struct cmd_results *cmd_gaps(int argc, char **argv) { | |||
770 | errno = 0; | 770 | errno = 0; |
771 | return cmd_results_new(CMD_INVALID, "gaps", "Number is out out of range."); | 771 | return cmd_results_new(CMD_INVALID, "gaps", "Number is out out of range."); |
772 | } | 772 | } |
773 | if (config->gaps_inner == 0) { | 773 | config->gaps_inner = config->gaps_outer = amount; |
774 | config->gaps_inner = amount; | ||
775 | } | ||
776 | if (config->gaps_outer == 0) { | ||
777 | config->gaps_outer = amount; | ||
778 | } | ||
779 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 774 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
780 | } | 775 | } |
781 | // gaps inner|outer n | 776 | // gaps inner|outer n |