summaryrefslogtreecommitdiff
path: root/multitouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'multitouch.c')
-rw-r--r--multitouch.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/multitouch.c b/multitouch.c
index 638b0b6..8e0f613 100644
--- a/multitouch.c
+++ b/multitouch.c
@@ -318,8 +318,22 @@ static void print_event(struct multitouch *mt, XIDeviceEvent* event)
msg("\t%.2f/%.2f (%.2f/%.2f)\n", event->event_x, event->event_y, event->root_x, event->root_y);
msg("\tdetail: %d\n", event->detail);
msg("\ton %s\n", window_to_name(mt, event->event));
- if (event->flags & XITouchPendingEnd)
- msg("\tflags: pending end\n");
+
+ switch(event->evtype)
+ {
+ case XI_TouchBegin:
+ case XI_TouchUpdate:
+ case XI_TouchEnd:
+ if (event->flags & XITouchPendingEnd)
+ msg("\tflags: pending end\n");
+ break;
+ case XI_Motion:
+ case XI_ButtonPress:
+ case XI_ButtonRelease:
+ if (event->flags & XIPointerEmulated)
+ msg("\tflags: emulated\n");
+ break;
+ }
}
static void paint_touch_begin(struct multitouch *mt, XIDeviceEvent *event)