diff --git a/events.c b/events.c index cd2aa23..0878bc9 100644 --- a/events.c +++ b/events.c @@ -348,11 +348,11 @@ void leave_notify(xcb_generic_event_t *evt) void motion_notify(xcb_generic_event_t *evt) { - PUTS("motion notify"); - xcb_motion_notify_event_t *e = (xcb_motion_notify_event_t *) evt; xcb_window_t win = e->event; + PRINTF("motion notify %X %i %i\n", win, e->root_x, e->root_y); + int dtime = e->time - last_motion_time; if (dtime > 1000) { last_motion_time = e->time;