summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c (renamed from wm.c)10
1 files changed, 6 insertions, 4 deletions
diff --git a/wm.c b/main.c
index ed002f7..b63d07e 100644
--- a/wm.c
+++ b/main.c
@@ -11,7 +11,7 @@
11#include <X11/Xatom.h> 11#include <X11/Xatom.h>
12#include <X11/Xproto.h> 12#include <X11/Xproto.h>
13 13
14#include "wm.h" 14#include "dwm.h"
15 15
16/********** CUSTOMIZE **********/ 16/********** CUSTOMIZE **********/
17 17
@@ -244,10 +244,12 @@ main(int argc, char *argv[])
244 update_keys(); 244 update_keys();
245 245
246 /* style */ 246 /* style */
247 initcolors(BGCOLOR, FGCOLOR, BORDERCOLOR); 247 dc.bg = initcolor(BGCOLOR);
248 initfont(&dc.font, FONT); 248 dc.fg = initcolor(FGCOLOR);
249 dc.border = initcolor(BORDERCOLOR);
250 initfont(FONT);
249 251
250 th = texth(&dc.font); 252 th = dc.font.height + 4;
251 253
252 dc.drawable = XCreatePixmap(dpy, root, sw, th, DefaultDepth(dpy, screen)); 254 dc.drawable = XCreatePixmap(dpy, root, sw, th, DefaultDepth(dpy, screen));
253 dc.gc = XCreateGC(dpy, root, 0, 0); 255 dc.gc = XCreateGC(dpy, root, 0, 0);