summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-21 15:56:19 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-21 15:56:36 +1000
commit22fdd63f4521c89ae43bbfc6741e872b4a74d18f (patch)
tree6e6635873d9499e4d29b3c7097eb977e51bc3aba /src
parent6c362c67ec7fb62d2d7bab5ab4e779147f941a33 (diff)
test_xi2: Print the key repeat flag if it is set.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/test_xi2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test_xi2.c b/src/test_xi2.c
index 8c96191..53d984f 100644
--- a/src/test_xi2.c
+++ b/src/test_xi2.c
@@ -48,6 +48,7 @@ static void print_deviceevent(XIDeviceEvent* event)
printf(" device: %d (%d)\n", event->deviceid, event->sourceid);
printf(" detail: %d\n", event->detail);
+ printf(" flags: %s\n", (event->flags & XIKeyRepeat) ? "repeat" : "");
printf(" root: %.2f/%.2f\n", event->root_x, event->root_y);
printf(" event: %.2f/%.2f\n", event->event_x, event->event_y);