diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-25 12:59:45 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-25 12:59:45 +0200 |
| commit | b55bd709ee6d0b09c141bf5ffe0647866e0374ef (patch) | |
| tree | 50bb320829520b71e8280a298af162b0ba1508a2 /main.c | |
| parent | back to 3 colors (diff) | |
| download | dwm-b55bd709ee6d0b09c141bf5ffe0647866e0374ef.tar.gz dwm-b55bd709ee6d0b09c141bf5ffe0647866e0374ef.zip | |
new color stuff/new rendering stuff
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 14 |
1 files changed, 9 insertions, 5 deletions
| @@ -20,7 +20,7 @@ | |||
| 20 | char stext[1024]; | 20 | char stext[1024]; |
| 21 | Bool *seltag; | 21 | Bool *seltag; |
| 22 | int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; | 22 | int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
| 23 | unsigned int ntags, numlockmask; | 23 | unsigned int ntags, numlockmask, modew; |
| 24 | Atom wmatom[WMLast], netatom[NetLast]; | 24 | Atom wmatom[WMLast], netatom[NetLast]; |
| 25 | Bool running = True; | 25 | Bool running = True; |
| 26 | Bool issel = True; | 26 | Bool issel = True; |
| @@ -121,11 +121,15 @@ setup() | |||
| 121 | seltag[0] = True; | 121 | seltag[0] = True; |
| 122 | 122 | ||
| 123 | /* style */ | 123 | /* style */ |
| 124 | dc.bg = getcolor(BGCOLOR); | 124 | dc.norm[ColBG] = getcolor(NORMBGCOLOR); |
| 125 | dc.fg = getcolor(FGCOLOR); | 125 | dc.norm[ColFG] = getcolor(NORMFGCOLOR); |
| 126 | dc.border = getcolor(BORDERCOLOR); | 126 | dc.sel[ColBG] = getcolor(SELBGCOLOR); |
| 127 | dc.sel[ColFG] = getcolor(SELFGCOLOR); | ||
| 128 | dc.status[ColBG] = getcolor(STATUSBGCOLOR); | ||
| 129 | dc.status[ColFG] = getcolor(STATUSFGCOLOR); | ||
| 127 | setfont(FONT); | 130 | setfont(FONT); |
| 128 | 131 | ||
| 132 | modew = 0; | ||
| 129 | sx = sy = 0; | 133 | sx = sy = 0; |
| 130 | sw = DisplayWidth(dpy, screen); | 134 | sw = DisplayWidth(dpy, screen); |
| 131 | sh = DisplayHeight(dpy, screen); | 135 | sh = DisplayHeight(dpy, screen); |
| @@ -133,7 +137,7 @@ setup() | |||
| 133 | 137 | ||
| 134 | bx = by = 0; | 138 | bx = by = 0; |
| 135 | bw = sw; | 139 | bw = sw; |
| 136 | dc.h = bh = dc.font.height + 4; | 140 | dc.h = bh = dc.font.height + 2; |
| 137 | wa.override_redirect = 1; | 141 | wa.override_redirect = 1; |
| 138 | wa.background_pixmap = ParentRelative; | 142 | wa.background_pixmap = ParentRelative; |
| 139 | wa.event_mask = ButtonPressMask | ExposureMask; | 143 | wa.event_mask = ButtonPressMask | ExposureMask; |
