Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
b5c2412
)
corrected order of cleanup code
author
Anselm R.Garbe <
[email protected]
>
Wed, 16 Aug 2006 17:25:29 +0000
(19:25 +0200)
committer
Anselm R.Garbe <
[email protected]
>
Wed, 16 Aug 2006 17:25:29 +0000
(19:25 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
50fb9d7
..
d566c9e
100644
(file)
--- 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);
}