Raise SIGWINCH in SIGHUP, so refresh is safe in ncurses.

master
Christoph Lohmann 3 years ago
parent b87460e37b
commit 59a8c7e4ae

@ -60,11 +60,8 @@ reloadcurrentslide(int sig)
{
loadcurrentslide(slidefiles, currentslide);
if (sig == SIGHUP) {
clear();
refresh();
printw("%.*s", currentslidelen, currentslidep);
}
if (sig == SIGHUP)
raise(SIGWINCH); /* Redisplay slide. */
}
void

Loading…
Cancel
Save