X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=78a984e52172d945584c0875fbfb2be8cef84268;hb=30561a0161629b15abe1beeb97eec3fc0768efaf;hp=803fe9f12a159cb3d0f0ec226ff61b89e4d4e127;hpb=95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6;p=dwm.git diff --git a/dwm.h b/dwm.h index 803fe9f..78a984e 100644 --- a/dwm.h +++ b/dwm.h @@ -3,7 +3,7 @@ * See LICENSE file for license details. */ -#include CONFIG +#include "config.h" #include /* mask shorthands, used in event.c and client.c */ @@ -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; @@ -51,7 +50,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 +59,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]; @@ -89,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); @@ -104,7 +104,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 +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);