JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added basic mouse support (actually we don't need more)
[dwm.git] / wm.h
diff --git a/wm.h b/wm.h
index 24662fa..b647a3e 100644 (file)
--- 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);