Fix SIGTERM functionality by making sure to sync before free in cleanup()

This commit is contained in:
Miles Alan 2020-07-23 18:18:39 -05:00
parent 76e7e35773
commit f3a0a23f19

View file

@ -193,9 +193,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);