aboutsummaryrefslogtreecommitdiffstats
path: root/wm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-11 21:24:10 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-11 21:24:10 +0200
commitb9da4b082eb658b4142b61c149212f414f7653b6 (patch)
tree146a4e480866d1497c3ec3ccf2b71305b07a5f03 /wm.h
parent5ed16faecb94b551ea00ea940e8d719211576de8 (diff)
downloaddwm-b9da4b082eb658b4142b61c149212f414f7653b6.tar.gz
added mouse-based resizals
Diffstat (limited to 'wm.h')
-rw-r--r--wm.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/wm.h b/wm.h
index 055ef62..7ee6103 100644
--- a/wm.h
+++ b/wm.h
@@ -11,6 +11,22 @@
#define WM_PROTOCOL_DELWIN 1
+typedef struct Client Client;
+typedef struct Key Key;
+typedef enum Align Align;
+
+enum Align {
+ NORTH = 0x01,
+ EAST = 0x02,
+ SOUTH = 0x04,
+ WEST = 0x08,
+ NEAST = NORTH | EAST,
+ NWEST = NORTH | WEST,
+ SEAST = SOUTH | EAST,
+ SWEST = SOUTH | WEST,
+ CENTER = NEAST | SWEST
+};
+
/* atoms */
enum { WMProtocols, WMDelete, WMLast };
enum { NetSupported, NetWMName, NetLast };
@@ -21,9 +37,6 @@ 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];
@@ -75,14 +88,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);
remember that computers suck.