summaryrefslogtreecommitdiffstats
path: root/wm.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-11 23:18:30 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-11 23:18:30 +0200
commit83d23908d3438d7f1f62533a7c8d96fc1019df55 (patch)
tree5e6cead0c83f19f95157cd9fed95aa4ccb714c5f /wm.c
parentmade code more readable (diff)
downloaddwm-83d23908d3438d7f1f62533a7c8d96fc1019df55.tar.gz
dwm-83d23908d3438d7f1f62533a7c8d96fc1019df55.zip
implemented draw_client stuff
Diffstat (limited to '')
-rw-r--r--wm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/wm.c b/wm.c
index 837be3c..82b2dee 100644
--- a/wm.c
+++ b/wm.c
@@ -245,10 +245,6 @@ main(int argc, char *argv[])
245 245
246 update_keys(); 246 update_keys();
247 247
248 brush.drawable = XCreatePixmap(dpy, root, rect.width, rect.height,
249 DefaultDepth(dpy, screen));
250 brush.gc = XCreateGC(dpy, root, 0, 0);
251
252 /* style */ 248 /* style */
253 loadcolors(dpy, screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR); 249 loadcolors(dpy, screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR);
254 loadfont(dpy, &brush.font, FONT); 250 loadfont(dpy, &brush.font, FONT);
@@ -266,6 +262,11 @@ main(int argc, char *argv[])
266 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); 262 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
267 XDefineCursor(dpy, barwin, cursor[CurNormal]); 263 XDefineCursor(dpy, barwin, cursor[CurNormal]);
268 XMapRaised(dpy, barwin); 264 XMapRaised(dpy, barwin);
265
266 brush.drawable = XCreatePixmap(dpy, root, rect.width, barrect.height,
267 DefaultDepth(dpy, screen));
268 brush.gc = XCreateGC(dpy, root, 0, 0);
269
269 pipe_spawn(statustext, sizeof(statustext), dpy, (char **)status); 270 pipe_spawn(statustext, sizeof(statustext), dpy, (char **)status);
270 draw_bar(); 271 draw_bar();
271 272