Index: base/message_pump_x.cc |
diff --git a/base/message_pump_x.cc b/base/message_pump_x.cc |
index 8e098af95924e57269b906f21eb7975d926d3c0f..98efb11dbc3a1719988bf83e542713fd9330bd7b 100644 |
--- a/base/message_pump_x.cc |
+++ b/base/message_pump_x.cc |
@@ -70,9 +70,14 @@ void InitializeXInput2(void) { |
return; |
} |
+#if defined(USE_XI2_1) |
+ int major = 2, minor = 1; |
+#else |
int major = 2, minor = 0; |
+#endif |
if (XIQueryVersion(display, &major, &minor) == BadRequest) { |
- VLOG(1) << "XInput2 not supported in the server."; |
+ VLOG(1) << "XInput" << major << "." << minor |
Daniel Kurtz
2011/09/08 23:09:58
This will actually print the server's supported ve
ningxin.hu
2011/09/09 05:08:54
Thanks. I will revert this change.
|
+ << "not supported in the server."; |
xiopcode = -1; |
return; |
} |
Daniel Kurtz
2011/09/08 23:09:58
Save the server's reported version (returned in ma
ningxin.hu
2011/09/09 05:08:54
Thanks for the suggestion. Since ubuntu supports m
|