From 9cd686c93a80b4095d4ee0960bef320ccd9ea02c Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 14 Jul 2006 10:07:38 +0200 Subject: implemented bar for dwm (I miss status text), I plan that status text is read from stdin in dwm --- dwm.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'dwm.h') diff --git a/dwm.h b/dwm.h index ee15949..1f8283c 100644 --- a/dwm.h +++ b/dwm.h @@ -88,19 +88,22 @@ struct Key { }; extern Display *dpy; -extern Window root; +extern Window root, barwin; extern Atom wm_atom[WMLast], net_atom[NetLast]; extern Cursor cursor[CurLast]; extern Bool running, issel; extern void (*handler[LASTEvent])(XEvent *); extern void (*arrange)(Arg *); -extern int tsel, screen, sx, sy, sw, sh, mw, th; -extern char *tags[TLast]; +extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; +extern char *tags[TLast], stext[1024]; extern DC dc; extern Client *clients, *sel; +/* bar.c */ +extern void draw_bar(); + /* client.c */ extern void manage(Window w, XWindowAttributes *wa); extern void unmanage(Client *c); @@ -126,7 +129,7 @@ extern void zoom(Arg *arg); extern void gravitate(Client *c, Bool invert); /* draw.c */ -extern void draw(Bool border, const char *text); +extern void drawtext(const char *text, Bool border); extern unsigned long initcolor(const char *colstr); extern void initfont(const char *fontstr); extern unsigned int textnw(char *text, unsigned int len); -- cgit v1.2.3-13-gbd6f