JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
draw.c is useless (belongs to main.c now)
[dwm.git] / event.c
diff --git a/event.c b/event.c
index db3ce46..dfe2552 100644 (file)
--- 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;