Mercurial > dwm-meillo
comparison wm.c @ 21:3ef108a5ca0a
implemented draw_client stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 23:18:30 +0200 |
parents | 359b6e563b95 |
children | e8f627998d6f |
comparison
equal
deleted
inserted
replaced
20:4560e0882c1d | 21:3ef108a5ca0a |
---|---|
243 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); | 243 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); |
244 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); | 244 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); |
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); |
255 | 251 |
256 wa.override_redirect = 1; | 252 wa.override_redirect = 1; |
264 barrect.width, barrect.height, 0, DefaultDepth(dpy, screen), | 260 barrect.width, barrect.height, 0, DefaultDepth(dpy, screen), |
265 CopyFromParent, DefaultVisual(dpy, screen), | 261 CopyFromParent, DefaultVisual(dpy, screen), |
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 |
272 wa.event_mask = SubstructureRedirectMask | EnterWindowMask \ | 273 wa.event_mask = SubstructureRedirectMask | EnterWindowMask \ |
273 | LeaveWindowMask; | 274 | LeaveWindowMask; |