aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/font.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/commands/font.c b/sway/commands/font.c
index 96127055..38ad8880 100644
--- a/sway/commands/font.c
+++ b/sway/commands/font.c
@@ -2,6 +2,7 @@
#include <string.h>
#include "sway/commands.h"
#include "sway/config.h"
+#include "sway/tree/arrange.h"
#include "log.h"
#include "stringop.h"
@@ -13,6 +14,9 @@ struct cmd_results *cmd_font(int argc, char **argv) {
char *font = join_args(argv, argc);
free(config->font);
config->font = strdup(font);
- config->font_height = get_font_text_height(font);
+ config_find_font_height(true);
+ if (!config->reading) {
+ arrange_root();
+ }
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}