From a635743c6dd8e945bbca6b5799dd00c86fe847e6 Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Wed, 16 Aug 2006 19:25:29 +0200 Subject: corrected order of cleanup code --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 50fb9d72..d566c9e3 100644 --- a/main.c +++ b/main.c @@ -33,9 +33,9 @@ cleanup() else XFreeFont(dpy, dc.font.xfont); XUngrabKey(dpy, AnyKey, AnyModifier, root); - XDestroyWindow(dpy, barwin); XFreePixmap(dpy, dc.drawable); XFreeGC(dpy, dc.gc); + XDestroyWindow(dpy, barwin); XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); XSync(dpy, False); } -- cgit v1.2.3