aewl
diff dwm.h @ 57:f005d46462e8
implemented bar for dwm (I miss status text), I plan that status text is read from stdin in dwm
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Fri, 14 Jul 2006 10:07:38 +0200 |
parents | 529901e6a227 |
children | 1269bd127551 |
line diff
1.1 --- a/dwm.h Fri Jul 14 08:45:30 2006 +0200 1.2 +++ b/dwm.h Fri Jul 14 10:07:38 2006 +0200 1.3 @@ -88,19 +88,22 @@ 1.4 }; 1.5 1.6 extern Display *dpy; 1.7 -extern Window root; 1.8 +extern Window root, barwin; 1.9 extern Atom wm_atom[WMLast], net_atom[NetLast]; 1.10 extern Cursor cursor[CurLast]; 1.11 extern Bool running, issel; 1.12 extern void (*handler[LASTEvent])(XEvent *); 1.13 extern void (*arrange)(Arg *); 1.14 1.15 -extern int tsel, screen, sx, sy, sw, sh, mw, th; 1.16 -extern char *tags[TLast]; 1.17 +extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; 1.18 +extern char *tags[TLast], stext[1024]; 1.19 1.20 extern DC dc; 1.21 extern Client *clients, *sel; 1.22 1.23 +/* bar.c */ 1.24 +extern void draw_bar(); 1.25 + 1.26 /* client.c */ 1.27 extern void manage(Window w, XWindowAttributes *wa); 1.28 extern void unmanage(Client *c); 1.29 @@ -126,7 +129,7 @@ 1.30 extern void gravitate(Client *c, Bool invert); 1.31 1.32 /* draw.c */ 1.33 -extern void draw(Bool border, const char *text); 1.34 +extern void drawtext(const char *text, Bool border); 1.35 extern unsigned long initcolor(const char *colstr); 1.36 extern void initfont(const char *fontstr); 1.37 extern unsigned int textnw(char *text, unsigned int len);