[PATCH xinput] Print the sourceid for RawEvents. (#34240)
Peter Hutterer
peter.hutterer at who-t.net
Thu Jul 28 18:05:28 PDT 2011
For XI 2.0 servers, this will always be 0.
X.Org Bug 34240 <http://bugs.freedesktop.org/show_bug.cgi?id=34240>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/test_xi2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/test_xi2.c b/src/test_xi2.c
index 3c3fee3..5dfd80a 100644
--- a/src/test_xi2.c
+++ b/src/test_xi2.c
@@ -136,6 +136,7 @@ static void print_rawevent(XIRawEvent *event)
double *val, *raw_val;
printf(" device: %d\n", event->deviceid);
+ printf(" sourceid: %d\n", event->sourceid);
printf(" detail: %d\n", event->detail);
printf(" valuators:\n");
--
1.7.6
More information about the xorg-devel
mailing list