summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
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
23static Client *
24getclient(Window w) {
25 Client *c;
26
27 for(c = clients; c && c->win != w; c = c->next);
28 return c;
29}
30
23static void 31static void
24movemouse(Client *c) { 32movemouse(Client *c) {
25 int x1, y1, ocx, ocy, di, nx, ny; 33 int x1, y1, ocx, ocy, di, nx, ny;