Set slidechanged before raise. - catpoint - Catpoint simple presenting software.
HTML git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/catpoint/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 80b1a263250b1efc820659eee7134a5a61f65d3f
DIR parent 68ef54b661d4e28bb74d67b1bdf81d997abb08db
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 28 Dec 2020 15:19:51 +0100
Set slidechanged before raise.
Thanks Bob!
Diffstat:
M catpoint.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
DIR diff --git a/catpoint.c b/catpoint.c
@@ -61,16 +61,16 @@ loadcurrentslide(char **argv, int slide)
void
reloadcurrentslide(int sig)
{
+ /*
+ * Keep this out of SIGHUP, in case this is used somewhere else.
+ */
+ slidechanged = 1;
+
if (sig == SIGHUP) {
/* Make ncurses redisplay slide. */
if (raise(SIGWINCH) < 0)
err(1, "raise");
}
-
- /*
- * Keep this out of SIGHUP, in case this is used somewhere else.
- */
- slidechanged = 1;
}
void