tSet slidechanged before raise. - catpoint - Catpoint simple presenting software.
 (HTM) git clone git://r-36.net/catpoint
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 80b1a263250b1efc820659eee7134a5a61f65d3f
 (DIR) parent 68ef54b661d4e28bb74d67b1bdf81d997abb08db
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 28 Dec 2020 15:19:51 +0100
       
       Set slidechanged before raise.
       
       Thanks Bob!
       
       Diffstat:
         catpoint.c                          |      10 +++++-----
       
       1 file changed, 5 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/catpoint.c b/catpoint.c
       t@@ -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