mirror of git://git.suckless.org/dmenu
renamed getcolor to initcolor
This commit is contained in:
parent
e4fc905317
commit
8a10b35c64
10
main.c
10
main.c
|
@ -109,7 +109,7 @@ drawmenu(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long
|
static unsigned long
|
||||||
getcolor(const char *colstr) {
|
initcolor(const char *colstr) {
|
||||||
Colormap cmap = DefaultColormap(dpy, screen);
|
Colormap cmap = DefaultColormap(dpy, screen);
|
||||||
XColor color;
|
XColor color;
|
||||||
|
|
||||||
|
@ -470,10 +470,10 @@ main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
XFreeModifiermap(modmap);
|
XFreeModifiermap(modmap);
|
||||||
/* style */
|
/* style */
|
||||||
dc.norm[ColBG] = getcolor(normbg);
|
dc.norm[ColBG] = initcolor(normbg);
|
||||||
dc.norm[ColFG] = getcolor(normfg);
|
dc.norm[ColFG] = initcolor(normfg);
|
||||||
dc.sel[ColBG] = getcolor(selbg);
|
dc.sel[ColBG] = initcolor(selbg);
|
||||||
dc.sel[ColFG] = getcolor(selfg);
|
dc.sel[ColFG] = initcolor(selfg);
|
||||||
initfont(font);
|
initfont(font);
|
||||||
/* menu window */
|
/* menu window */
|
||||||
wa.override_redirect = 1;
|
wa.override_redirect = 1;
|
||||||
|
|
Loading…
Reference in New Issue