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 | renamed view.c into screen.c (diff) | |
| download | dwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.tar.gz dwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.zip | |
draw.c is useless (belongs to main.c now)
Diffstat (limited to '')
| -rw-r--r-- | event.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -20,6 +20,14 @@ KEYS | |||
| 20 | #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) | 20 | #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) |
| 21 | #define MOUSEMASK (BUTTONMASK | PointerMotionMask) | 21 | #define MOUSEMASK (BUTTONMASK | PointerMotionMask) |
| 22 | 22 | ||
| 23 | static Client * | ||
| 24 | getclient(Window w) { | ||
| 25 | Client *c; | ||
| 26 | |||
| 27 | for(c = clients; c && c->win != w; c = c->next); | ||
| 28 | return c; | ||
| 29 | } | ||
| 30 | |||
| 23 | static void | 31 | static void |
| 24 | movemouse(Client *c) { | 32 | movemouse(Client *c) { |
| 25 | int x1, y1, ocx, ocy, di, nx, ny; | 33 | int x1, y1, ocx, ocy, di, nx, ny; |
