diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 15:17:31 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 15:17:31 +0100 |
commit | f8415019d4edc1cd4f310adb256e6656e85bfe75 (patch) | |
tree | 2813e15f6dbd4a3c1326a3d2c08ab2bcea3c61af /event.c | |
parent | 238dd5d2b15b8bdc0f05d5be7f86a1ca03d2920b (diff) |
draw.c is useless (belongs to main.c now)
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |