Fix SIGTERM functionality by making sure to sync before free in cleanup() - svkbd - simple virtual keyboard
 (HTM) git clone git://git.suckless.org/svkbd
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b488ae6410567d64a48eb676f7038c68f3eb0cc2
 (DIR) parent c8ee269e7344f7e1deeaa8c4ce1b4a16c6f5b26b
 (HTM) Author: Miles Alan <m@milesalan.com>
       Date:   Sun,  2 Aug 2020 15:46:13 +0200
       
       Fix SIGTERM functionality by making sure to sync before free in cleanup()
       
       Diffstat:
         M svkbd.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/svkbd.c b/svkbd.c
       @@ -196,9 +196,9 @@ cleanup(void) {
        
                for (i = 0; i < SchemeLast; i++)
                        free(scheme[i]);
       -        drw_free(drw);
                drw_sync(drw);
                XSync(dpy, False);
       +        drw_free(drw);
                XDestroyWindow(dpy, win);
                XSync(dpy, False);
                XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);