From 936f8c24e076189b8a70d4fcc4854f94346c18fe Mon Sep 17 00:00:00 2001 From: "S. Christoffer Eliesen" Date: Wed, 4 Nov 2015 01:27:02 +0100 Subject: [PATCH] commands: gaps: Always apply default gaps config. --- sway/commands.c | 7 +------ 1 file changed, 1 insertion(+), 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) { 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