summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/main.c b/main.c
index 5b00d0c..0727c2a 100644
--- a/main.c
+++ b/main.c
@@ -20,7 +20,7 @@
20char stext[1024]; 20char stext[1024];
21Bool *seltag; 21Bool *seltag;
22int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; 22int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
23unsigned int ntags, numlockmask; 23unsigned int ntags, numlockmask, modew;
24Atom wmatom[WMLast], netatom[NetLast]; 24Atom wmatom[WMLast], netatom[NetLast];
25Bool running = True; 25Bool running = True;
26Bool issel = True; 26Bool 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;