+typedef struct poll_mouse_data poll_mouse_data;
+struct poll_mouse_data {
+ int root_x;
+ int root_y;
+ Window child;
+ unsigned int mask;
+ time_t time;
+};
+
+#ifdef HAVE_XINPUT
+/* XInputExtension device support */
+#include <X11/extensions/XInput.h>
+
+typedef struct xinput_dev_info xinput_dev_info;
+struct xinput_dev_info {
+ XDevice *device;
+ XEventClass press, release, valuator;
+ poll_mouse_data last_poll_mouse;
+};
+#endif