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

master
Miles Alan 4 years ago
parent 76e7e35773
commit f3a0a23f19
  1. 2
      svkbd.c

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

Loading…
Cancel
Save