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

This commit is contained in:
Miles Alan 2020-08-02 15:46:13 +02:00 committed by Hiltjo Posthuma
parent c8ee269e73
commit b488ae6410
1 changed files with 1 additions and 1 deletions

View File

@ -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);