pointer_notify_motion(&tp->device->base, time, dx, dy);
}
+static void
+tp_handle_state(struct tp_dispatch *tp,
+ uint64_t time)
+{
+ tp_process_state(tp, time);
+ tp_post_events(tp, time);
+ tp_post_process_state(tp, time);
+}
+
static void
tp_process(struct evdev_dispatch *dispatch,
struct evdev_device *device,
tp_process_key(tp, e, time);
break;
case EV_SYN:
- tp_process_state(tp, time);
- tp_post_events(tp, time);
- tp_post_process_state(tp, time);
+ tp_handle_state(tp, time);
break;
}
}