Skip to content

Commit e4adbcf

Browse files
committed
fix(xst: reload): init and load spare fonts (aka font2), call xhints after resize
1 parent d1eea78 commit e4adbcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xst.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,22 @@ reload(int sig)
157157
if (sig == -1) {
158158
return;
159159
}
160+
printf(" :: XST :: reloading config...\n");
160161

161162
xrdb_load();
162163

163164
/* colors, fonts */
164165
xloadcols();
165166
xunloadfonts();
166167
xloadfonts(getusedfont(), 0);
168+
xinitsparefonts();
169+
xloadsparefonts();
167170
xsetcursor(cursorshape);
168171

169172
/* pretend the window just got resized */
170173
cresize(win.w, win.h);
171174
redraw();
175+
xhints();
172176
/* triggers re-render if we're visible. */
173177
ttywrite("\033[O", 3, 1);
174178
}

0 commit comments

Comments
 (0)