X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=wm.h;h=b647a3e9d66d61e63ef3abee1ace73dcdb29e04b;hb=48b6e9a3968e54a87f022c8e68b5bec5423cb75f;hp=055ef62e772d24ffe75ba511c0e8e40d60812cd0;hpb=d6e0e6e9879c144f5d374fca0c015fd6208fc27e;p=dwm.git diff --git a/wm.h b/wm.h index 055ef62..b647a3e 100644 --- a/wm.h +++ b/wm.h @@ -11,6 +11,9 @@ #define WM_PROTOCOL_DELWIN 1 +typedef struct Client Client; +typedef struct Key Key; + /* atoms */ enum { WMProtocols, WMDelete, WMLast }; enum { NetSupported, NetWMName, NetLast }; @@ -21,13 +24,9 @@ enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; /* rects */ enum { RFloat, RGrid, RLast }; -typedef struct Client Client; -typedef struct Key Key; - struct Client { char name[256]; char tag[256]; - unsigned int border; int proto; Bool fixedsize; Window win; @@ -75,14 +74,19 @@ extern Client *getclient(Window w); extern void focus(Client *c); extern void update_name(Client *c); extern void draw_client(Client *c); +extern void resize(Client *c); /* event.c */ -extern unsigned int flush_events(long even_mask); +extern unsigned int discard_events(long even_mask); /* key.c */ extern void update_keys(); extern void keypress(XEvent *e); +/* mouse.c */ +extern void mresize(Client *c); +extern void mmove(Client *c); + /* wm.c */ extern int error_handler(Display *dpy, XErrorEvent *error); extern void send_message(Window w, Atom a, long value);