X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dwm.h;h=d8ce212048dcacefa078daa4cb1fcc7f85097162;hb=daae3bba504fc705c5fd56363b656937eee5deb4;hp=9d2d959bf8092089a4162727934558068f6dae47;hpb=9833610356f7ce033589680fddf87000e5788774;p=dwm.git diff --git a/dwm.h b/dwm.h index 9d2d959..d8ce212 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,9 +39,9 @@ typedef struct { typedef struct { /* draw context */ int x, y, w, h; - unsigned long bg; - unsigned long fg; - unsigned long border; + unsigned long norm[ColLast]; + unsigned long sel[ColLast]; + unsigned long status[ColLast]; Drawable drawable; Fnt font; GC gc; @@ -53,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; @@ -65,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 *); @@ -124,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); @@ -133,4 +137,5 @@ extern void restack(); extern void togglemode(Arg *arg); extern void toggleview(Arg *arg); extern void view(Arg *arg); +extern void viewall(Arg *arg); extern void zoom(Arg *arg);