X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=939b54678016c56c67a47ec9d4e487f9f033787a;hb=9955ddc978c2e6acfe246f29f1d317b55d860757;hp=803fe9f12a159cb3d0f0ec226ff61b89e4d4e127;hpb=95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6;p=dwm.git diff --git a/dwm.h b/dwm.h index 803fe9f..939b546 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; }; @@ -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();