From 682a9649bd0371d7c1554ecbd38954dc0b9299af Mon Sep 17 00:00:00 2001 From: zavok Date: Wed, 2 Dec 2015 23:20:29 +0300 Subject: bugfix, you can bring window up more than once now --- drw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drw.c') 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); -- cgit v1.2.3