summaryrefslogtreecommitdiffstats
path: root/wm.c
diff options
context:
space:
mode:
Diffstat (limited to 'wm.c')
-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