about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 15:17:31 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 15:17:31 +0100
commitf8415019d4edc1cd4f310adb256e6656e85bfe75 (patch)
tree2813e15f6dbd4a3c1326a3d2c08ab2bcea3c61af /event.c
parent238dd5d2b15b8bdc0f05d5be7f86a1ca03d2920b (diff)
downloaddwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.tar.gz
draw.c is useless (belongs to main.c now)
Diffstat (limited to 'event.c')
-rw-r--r--event.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/event.c b/event.c
index db3ce46..dfe2552 100644
--- a/event.c
+++ b/event.c
@@ -20,6 +20,14 @@ KEYS
 #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
 #define MOUSEMASK		(BUTTONMASK | PointerMotionMask)
 
+static Client *
+getclient(Window w) {
+	Client *c;
+
+	for(c = clients; c && c->win != w; c = c->next);
+	return c;
+}
+
 static void
 movemouse(Client *c) {
 	int x1, y1, ocx, ocy, di, nx, ny;