X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=wm.h;h=b647a3e9d66d61e63ef3abee1ace73dcdb29e04b;hb=48b6e9a3968e54a87f022c8e68b5bec5423cb75f;hp=24662fa4f6c36b05eaf2a22ab193f2e2a1931519;hpb=586f66331d1105be03c42e6faeae1672b974a98a;p=dwm.git diff --git a/wm.h b/wm.h index 24662fa..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; @@ -55,7 +54,7 @@ extern Bool running, sel_screen, grid; extern void (*handler[LASTEvent]) (XEvent *); extern int screen; -extern char *bartext, tag[256]; +extern char statustext[1024], tag[256]; extern Brush brush; extern Client *clients, *stack; @@ -74,14 +73,20 @@ extern void unmanage(Client *c); 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);