diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-04 01:27:24 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-11-04 01:32:38 +0100 |
commit | eeec0fda8a856d67b7ddf4432a504589989e20e2 (patch) | |
tree | 2d86515c4b941603af6336e386f35e4b169e9135 | |
parent | commands: gaps: Always apply default gaps config. (diff) | |
download | sway-eeec0fda8a856d67b7ddf4432a504589989e20e2.tar.gz sway-eeec0fda8a856d67b7ddf4432a504589989e20e2.tar.zst sway-eeec0fda8a856d67b7ddf4432a504589989e20e2.zip |
commands: gaps: Re-arrange windows after changing default gaps.
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 9d4f74aa..19b8e1a9 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -771,6 +771,7 @@ static struct cmd_results *cmd_gaps(int argc, char **argv) { | |||
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 | config->gaps_inner = config->gaps_outer = amount; | 773 | config->gaps_inner = config->gaps_outer = amount; |
774 | arrange_windows(&root_container, -1, -1); | ||
774 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 775 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
775 | } | 776 | } |
776 | // gaps inner|outer n | 777 | // gaps inner|outer n |
@@ -786,6 +787,7 @@ static struct cmd_results *cmd_gaps(int argc, char **argv) { | |||
786 | } else if (strcasecmp(target_str, "outer") == 0) { | 787 | } else if (strcasecmp(target_str, "outer") == 0) { |
787 | config->gaps_outer = amount; | 788 | config->gaps_outer = amount; |
788 | } | 789 | } |
790 | arrange_windows(&root_container, -1, -1); | ||
789 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 791 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
790 | } | 792 | } |
791 | // gaps inner|outer current|all set|plus|minus n | 793 | // gaps inner|outer current|all set|plus|minus n |