summaryrefslogtreecommitdiff
path: root/drw.c
diff options
context:
space:
mode:
authorzavok <an2qzavok@gmail.com>2015-12-02 23:20:29 +0300
committerzavok <an2qzavok@gmail.com>2015-12-02 23:20:29 +0300
commit682a9649bd0371d7c1554ecbd38954dc0b9299af (patch)
treea3c7110df8a34d6aa3138772d43f3c7fad6eff32 /drw.c
parent2df401ad8c93e0fafb81c1832fc99a4be8b4ac4f (diff)
bugfix, you can bring window up more than once now
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drw.c b/drw.c
index 0423873..1d911e4 100644
--- a/drw.c
+++ b/drw.c
@@ -88,9 +88,11 @@ void
drw_free(Drw *drw) {
size_t i;
- for (i = 0; i < drw->fontcount; i++) {
+ /* This was breaking the program when I tried to bring window up second time
+ Too lazy to dig deeper right now,*\
+ \*or (i = 0; i < drw->fontcount; i++) {
drw_font_free(drw->fonts[i]);
- }
+ }*/
XFreePixmap(drw->dpy, drw->drawable);
XFreeGC(drw->dpy, drw->gc);
free(drw);