X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=bcdb4e354b7054e511fec82bdef79ff409693de9;hb=7b5638f61d5c8b5a76bc3f7a5962cb7490da3b6b;hp=a6a04cabdb17630a204fae803a02956e92b89947;hpb=cd8d8e120857329800e93e22572e35560d1b0e80;p=dwm.git diff --git a/dwm.h b/dwm.h index a6a04ca..bcdb4e3 100644 --- a/dwm.h +++ b/dwm.h @@ -25,9 +25,12 @@ enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast }; /* END CUSTOMIZE */ +/* mask shorthands, used in event.c and client.c */ +#define ButtonMask (ButtonPressMask | ButtonReleaseMask) +#define MouseMask (ButtonMask | PointerMotionMask) + typedef union Arg Arg; typedef struct Client Client; -typedef enum Corner Corner; typedef struct DC DC; typedef struct Fnt Fnt; @@ -43,7 +46,8 @@ enum { WMProtocols, WMDelete, WMLast }; /* cursor */ enum { CurNormal, CurResize, CurMove, CurLast }; -enum Corner { TopLeft, TopRight, BotLeft, BotRight }; +/* windowcorners */ +typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner; struct Fnt { int ascent; @@ -133,7 +137,7 @@ extern int xerror(Display *dsply, XErrorEvent *ee); extern void appendtag(Arg *arg); extern void dofloat(Arg *arg); extern void dotile(Arg *arg); -extern Client *getnext(Client *c, unsigned int t); +extern Client *getnext(Client *c); extern Client *getprev(Client *c); extern void replacetag(Arg *arg); extern void settags(Client *c);