overlapping code

This commit is contained in:
Connor Lane Smith 2010-06-23 12:42:08 +01:00
parent 08b264393d
commit bba30e2686
3 changed files with 0 additions and 13 deletions

View File

@ -278,11 +278,6 @@ setup(Bool topbar) {
} }
XFreeModifiermap(modmap); XFreeModifiermap(modmap);
/* style */
dc.norm[ColBG] = getcolor(normbgcolor);
dc.norm[ColFG] = getcolor(normfgcolor);
dc.sel[ColBG] = getcolor(selbgcolor);
dc.sel[ColFG] = getcolor(selfgcolor);
initfont(font); initfont(font);
/* menu window */ /* menu window */
@ -323,7 +318,6 @@ setup(Bool topbar) {
DefaultVisual(dpy, screen), DefaultVisual(dpy, screen),
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
/* pixmap */
dcsetup(); dcsetup();
if(prompt) if(prompt)
promptw = MIN(textw(prompt), mw / 5); promptw = MIN(textw(prompt), mw / 5);

View File

@ -489,11 +489,6 @@ setup(Bool topbar) {
} }
XFreeModifiermap(modmap); XFreeModifiermap(modmap);
/* style */
dc.norm[ColBG] = getcolor(normbgcolor);
dc.norm[ColFG] = getcolor(normfgcolor);
dc.sel[ColBG] = getcolor(selbgcolor);
dc.sel[ColFG] = getcolor(selfgcolor);
initfont(font); initfont(font);
/* menu window */ /* menu window */
@ -534,7 +529,6 @@ setup(Bool topbar) {
DefaultVisual(dpy, screen), DefaultVisual(dpy, screen),
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
/* pixmap */
dcsetup(); dcsetup();
if(maxname) if(maxname)
cmdw = MIN(textw(maxname), mw / 3); cmdw = MIN(textw(maxname), mw / 3);

1
draw.c
View File

@ -47,7 +47,6 @@ dcsetup(void) {
dc.norm[ColFG] = getcolor(normfgcolor); dc.norm[ColFG] = getcolor(normfgcolor);
dc.sel[ColBG] = getcolor(selbgcolor); dc.sel[ColBG] = getcolor(selbgcolor);
dc.sel[ColFG] = getcolor(selfgcolor); dc.sel[ColFG] = getcolor(selfgcolor);
initfont(font);
/* pixmap */ /* pixmap */
dc.drawable = XCreatePixmap(dpy, parent, mw, mh, DefaultDepth(dpy, screen)); dc.drawable = XCreatePixmap(dpy, parent, mw, mh, DefaultDepth(dpy, screen));