aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/reload.c
diff options
context:
space:
mode:
authorRyan Dwyer <RyanDwyer@users.noreply.github.com>2018-10-22 22:40:26 +1000
committerGitHub <noreply@github.com>2018-10-22 22:40:26 +1000
commitdb2b54555096c38c5634372d70cf733b5b60a35d (patch)
tree8696d1c2d30824b01e775c7f118a58eb92ec3ebb /sway/commands/reload.c
parenta918844e52a94d949f7db6181263e0186c52eb29 (diff)
parent80e8be71a34c44dec693c0b54f8b6b220920b290 (diff)
Merge pull request #2922 from RedSoxFan/fix-2905
cmd_reload: recalc font sizing + rebuild textures
Diffstat (limited to 'sway/commands/reload.c')
-rw-r--r--sway/commands/reload.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/commands/reload.c b/sway/commands/reload.c
index 9e136d48..791081a8 100644
--- a/sway/commands/reload.c
+++ b/sway/commands/reload.c
@@ -5,9 +5,17 @@
#include "sway/ipc-server.h"
#include "sway/server.h"
#include "sway/tree/arrange.h"
+#include "sway/tree/view.h"
#include "list.h"
#include "log.h"
+static void rebuild_textures_iterator(struct sway_container *con, void *data) {
+ if (con->view) {
+ view_update_marks_textures(con->view);
+ }
+ container_update_title_textures(con);
+}
+
static void do_reload(void *data) {
// store bar ids to check against new bars for barconfig_update events
list_t *bar_ids = create_list();
@@ -40,6 +48,9 @@ static void do_reload(void *data) {
list_foreach(bar_ids, free);
list_free(bar_ids);
+ config_update_font_height(true);
+ root_for_each_container(rebuild_textures_iterator, NULL);
+
arrange_root();
}