X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dwm.h;h=57d628abfc3e47638a9503883677ed180f59bed6;hb=c225e1afc23e6862f9864bad3b7b11399dda36a1;hp=68b307dc2e2e6fca527c9c1e9db55ca68feb85a3;hpb=b515765216c46246358256da6098ea2c07a93c84;p=dwm.git diff --git a/dwm.h b/dwm.h index 68b307d..57d628a 100644 --- a/dwm.h +++ b/dwm.h @@ -17,7 +17,7 @@ typedef struct DC DC; typedef struct Fnt Fnt; union Arg { - const char **argv; + const char *cmd; int i; }; @@ -51,7 +51,6 @@ struct DC { /* draw context */ struct Client { char name[256]; - char *tags[TLast]; int proto; int x, y, w, h; int tx, ty, tw, th; /* title */ @@ -61,14 +60,17 @@ struct Client { unsigned int border; Bool isfloat; Bool ismax; + Bool *tags; Client *next; Client *prev; Window win; Window title; }; -extern char *tags[TLast], stext[1024]; +extern const char *tags[]; +extern char stext[1024]; extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; +extern unsigned int ntags; extern void (*handler[LASTEvent])(XEvent *); extern void (*arrange)(Arg *); extern Atom wmatom[WMLast], netatom[NetLast]; @@ -104,7 +106,7 @@ extern void drawstatus(); extern void drawtitle(Client *c); extern unsigned long getcolor(const char *colstr); extern void setfont(const char *fontstr); -extern unsigned int textw(char *text); +extern unsigned int textw(const char *text); /* event.c */ extern void grabkeys(); @@ -119,6 +121,7 @@ extern int xerror(Display *dsply, XErrorEvent *ee); extern void appendtag(Arg *arg); extern void dofloat(Arg *arg); extern void dotile(Arg *arg); +extern void initrregs(); extern Client *getnext(Client *c); extern Client *getprev(Client *c); extern void replacetag(Arg *arg);