Skip to content

Commit

Permalink
fix(xst: reload): init and load spare fonts (aka font2), call xhints …
Browse files Browse the repository at this point in the history
…after resize
  • Loading branch information
actionless committed Nov 18, 2024
1 parent d1eea78 commit e4adbcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xst.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,22 @@ reload(int sig)
if (sig == -1) {
return;
}
printf(" :: XST :: reloading config...\n");

xrdb_load();

/* colors, fonts */
xloadcols();
xunloadfonts();
xloadfonts(getusedfont(), 0);
xinitsparefonts();
xloadsparefonts();
xsetcursor(cursorshape);

/* pretend the window just got resized */
cresize(win.w, win.h);
redraw();
xhints();
/* triggers re-render if we're visible. */
ttywrite("\033[O", 3, 1);
}
Expand Down

0 comments on commit e4adbcf

Please sign in to comment.