diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-06-14 10:38:18 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-06-14 10:38:18 +0100 |
| commit | 1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee (patch) | |
| tree | d85bf74383db0f873c7a4ff7e500c57efec6ecf2 /dwm.c | |
| parent | minor fix (diff) | |
| download | dwm-1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee.tar.gz dwm-1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee.zip | |
removed font and color definitions
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 18 |
1 files changed, 8 insertions, 10 deletions
| @@ -1321,12 +1321,12 @@ setup(void) { | |||
| 1321 | /* init screen */ | 1321 | /* init screen */ |
| 1322 | screen = DefaultScreen(dpy); | 1322 | screen = DefaultScreen(dpy); |
| 1323 | root = RootWindow(dpy, screen); | 1323 | root = RootWindow(dpy, screen); |
| 1324 | initfont(FONT); | 1324 | initfont(font); |
| 1325 | sx = 0; | 1325 | sx = 0; |
| 1326 | sy = 0; | 1326 | sy = 0; |
| 1327 | sw = DisplayWidth(dpy, screen); | 1327 | sw = DisplayWidth(dpy, screen); |
| 1328 | sh = DisplayHeight(dpy, screen); | 1328 | sh = DisplayHeight(dpy, screen); |
| 1329 | bh = dc.font.height + 2; | 1329 | bh = dc.h = dc.font.height + 2; |
| 1330 | lt = layouts; | 1330 | lt = layouts; |
| 1331 | updategeom(); | 1331 | updategeom(); |
| 1332 | 1332 | ||
| @@ -1344,14 +1344,12 @@ setup(void) { | |||
| 1344 | cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); | 1344 | cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); |
| 1345 | 1345 | ||
| 1346 | /* init appearance */ | 1346 | /* init appearance */ |
| 1347 | dc.norm[ColBorder] = getcolor(NORMBORDERCOLOR); | 1347 | dc.norm[ColBorder] = getcolor(normbordercolor); |
| 1348 | dc.norm[ColBG] = getcolor(NORMBGCOLOR); | 1348 | dc.norm[ColBG] = getcolor(normbgcolor); |
| 1349 | dc.norm[ColFG] = getcolor(NORMFGCOLOR); | 1349 | dc.norm[ColFG] = getcolor(normfgcolor); |
| 1350 | dc.sel[ColBorder] = getcolor(SELBORDERCOLOR); | 1350 | dc.sel[ColBorder] = getcolor(selbordercolor); |
| 1351 | dc.sel[ColBG] = getcolor(SELBGCOLOR); | 1351 | dc.sel[ColBG] = getcolor(selbgcolor); |
| 1352 | dc.sel[ColFG] = getcolor(SELFGCOLOR); | 1352 | dc.sel[ColFG] = getcolor(selfgcolor); |
| 1353 | initfont(FONT); | ||
| 1354 | dc.h = bh; | ||
| 1355 | dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen)); | 1353 | dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen)); |
| 1356 | dc.gc = XCreateGC(dpy, root, 0, 0); | 1354 | dc.gc = XCreateGC(dpy, root, 0, 0); |
| 1357 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); | 1355 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); |
