all repos — dmenu @ 164986763a29db97abb52b15cbd282b5636d83c0

my build of dmenu

free schemes as array

this makes it slightly easier to add custom schemes aswell
Hiltjo Posthuma hiltjo@codemadness.org
Sun, 18 Oct 2015 18:37:20 +0200
commit

164986763a29db97abb52b15cbd282b5636d83c0

parent

09d0a36e0370f7ca9bdb171bf93c5ac3131c5a92

1 files changed, 6 insertions(+), 6 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -92,13 +92,13 @@

static void cleanup(void) { + size_t i; + XUngrabKey(dpy, AnyKey, AnyModifier, root); - drw_clr_free(scheme[SchemeNorm].bg); - drw_clr_free(scheme[SchemeNorm].fg); - drw_clr_free(scheme[SchemeSel].fg); - drw_clr_free(scheme[SchemeSel].bg); - drw_clr_free(scheme[SchemeOut].fg); - drw_clr_free(scheme[SchemeOut].bg); + for (i = 0; i < SchemeLast; i++) { + drw_clr_free(scheme[i].bg); + drw_clr_free(scheme[i].fg); + } drw_free(drw); XSync(dpy, False); XCloseDisplay(dpy);