X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=1f8283c260289d345909331d105c08c472252160;hb=9cd686c93a80b4095d4ee0960bef320ccd9ea02c;hp=118ac242ec925b0cf003ef7ec837a028f83eed12;hpb=3aad92202d58208c4197857d3f17c535ba0bd56a;p=dwm.git diff --git a/dwm.h b/dwm.h index 118ac24..1f8283c 100644 --- a/dwm.h +++ b/dwm.h @@ -66,8 +66,8 @@ struct Client { int grav; unsigned int border; long flags; + Bool floating; Window win; - Window trans; Window title; Client *next; Client *revert; @@ -77,6 +77,7 @@ struct Rule { const char *class; const char *instance; char *tags[TLast]; + Bool floating; }; struct Key { @@ -87,18 +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 (*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); @@ -106,7 +111,7 @@ extern Client *getclient(Window w); extern void focus(Client *c); extern void update_name(Client *c); extern void draw_client(Client *c); -extern void resize(Client *c); +extern void resize(Client *c, Bool inc); extern void update_size(Client *c); extern Client *gettitle(Window w); extern void craise(Client *c); @@ -117,13 +122,14 @@ extern void prevc(Arg *arg); extern void max(Arg *arg); extern void floating(Arg *arg); extern void tiling(Arg *arg); -extern void tag(Arg *arg); +extern void ttrunc(Arg *arg); +extern void tappend(Arg *arg); extern void view(Arg *arg); 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);