summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-13 11:43:05 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-13 11:43:05 +0200
commit9e8b3258a06de01c53e60243ffe3419b47d016dd (patch)
treea39ebed6cc97e75dc71f7ffb54ebb66342fef48d /main.c
parent44f2e8b952264311887c3b51dc6a987af226062a (diff)
downloaddwm-9e8b3258a06de01c53e60243ffe3419b47d016dd.tar.gz
dwm-9e8b3258a06de01c53e60243ffe3419b47d016dd.zip
changed default colors
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 @@
#include <X11/Xatom.h>
#include <X11/Xproto.h>
-#include "wm.h"
+#include "dwm.h"
/********** CUSTOMIZE **********/
@@ -244,10 +244,12 @@ main(int argc, char *argv[])
update_keys();
/* style */
- initcolors(BGCOLOR, FGCOLOR, BORDERCOLOR);
- initfont(&dc.font, FONT);
+ dc.bg = initcolor(BGCOLOR);
+ dc.fg = initcolor(FGCOLOR);
+ dc.border = initcolor(BORDERCOLOR);
+ initfont(FONT);
- th = texth(&dc.font);
+ th = dc.font.height + 4;
dc.drawable = XCreatePixmap(dpy, root, sw, th, DefaultDepth(dpy, screen));
dc.gc = XCreateGC(dpy, root, 0, 0);