X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=78a984e52172d945584c0875fbfb2be8cef84268;hb=30561a0161629b15abe1beeb97eec3fc0768efaf;hp=c44da292561800611c446b04e62faf4fc9f05dc0;hpb=8cc7f3bace087dfb024a23115c211d82b35614ae;p=dwm.git diff --git a/dwm.h b/dwm.h index c44da29..78a984e 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; }; @@ -43,7 +43,6 @@ struct DC { /* draw context */ int x, y, w, h; unsigned long bg; unsigned long fg; - unsigned long border; Drawable drawable; Fnt font; GC gc; @@ -60,16 +59,17 @@ struct Client { unsigned int border; Bool isfloat; Bool ismax; - Bool tags[TLast]; + Bool *tags; Client *next; Client *prev; Window win; Window title; }; -extern const char *tags[TLast]; +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]; @@ -90,7 +90,6 @@ extern Client *getctitle(Window w); extern void gravitate(Client *c, Bool invert); extern void higher(Client *c); extern void killclient(Arg *arg); -extern void lower(Client *c); extern void manage(Window w, XWindowAttributes *wa); extern void resize(Client *c, Bool sizehints, Corner sticky); extern void setsize(Client *c); @@ -120,6 +119,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);