X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=b41685121809f0531863a958d25903a4e9c3b92e;hb=c3c94c0e0a4da1562b040a17ee670312ad8e65af;hp=7db0f546c70615b12e2fe94dae33ab30b725311c;hpb=2e0c767d74da024c3cd4dbd524e1364039704451;p=dwm.git diff --git a/dwm.h b/dwm.h index 7db0f54..b416851 100644 --- a/dwm.h +++ b/dwm.h @@ -23,6 +23,9 @@ enum { WMProtocols, WMDelete, WMLast }; /* cursor */ enum { CurNormal, CurResize, CurMove, CurLast }; +/* color */ +enum { ColFG, ColBG, ColLast }; + /* window corners */ typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner; @@ -36,8 +39,9 @@ typedef struct { typedef struct { /* draw context */ int x, y, w, h; - unsigned long bg[2]; - unsigned long fg[2]; + unsigned long norm[ColLast]; + unsigned long sel[ColLast]; + unsigned long status[ColLast]; Drawable drawable; Fnt font; GC gc; @@ -52,7 +56,7 @@ struct Client { int basew, baseh, incw, inch, maxw, maxh, minw, minh; int grav; long flags; - unsigned int border; + unsigned int border, weight; Bool isfloat; Bool ismax; Bool *tags; @@ -64,7 +68,7 @@ struct Client { extern const char *tags[]; extern char stext[1024]; -extern int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; +extern int bx, by, bw, bh, bmw, mw, screen, sx, sy, sw, sh; extern unsigned int ntags, numlockmask; extern void (*handler[LASTEvent])(XEvent *); extern void (*arrange)(Arg *); @@ -123,6 +127,7 @@ extern void *erealloc(void *ptr, unsigned int size); extern void spawn(Arg *arg); /* view.c */ +extern void detach(Client *c); extern void dofloat(Arg *arg); extern void dotile(Arg *arg); extern void focusnext(Arg *arg);