commit b488ae6410567d64a48eb676f7038c68f3eb0cc2
Author: Miles Alan <[email protected]>
AuthorDate: Sun Aug 2 15:46:13 2020 +0200
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Sun Aug 2 18:00:30 2020 +0200
Fix SIGTERM functionality by making sure to sync before free in cleanup()
diff --git a/svkbd.c b/svkbd.c
index e5319e1..e3f70b0 100644
--- 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);