[gtk+] Fix build with XInput < 2.2
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix build with XInput < 2.2
- Date: Tue, 24 Apr 2012 11:56:42 +0000 (UTC)
commit 2e873e3fdccb98c79da3a4a02e7830847e7edebb
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Tue Apr 24 12:49:51 2012 +0100
Fix build with XInput < 2.2
Fixes regression introduced in fa8e6f7857e9b4afba227c3108111f359dc826d5
gdk/x11/gdkdevicemanager-xi2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 15f095b..65ea9dd 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -1330,7 +1330,11 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
GDK_NOTE(EVENTS,
g_message ("smooth scroll: %s\n\tdevice: %u\n\tsource device: %u\n\twindow %ld\n\tdeltas: %f %f",
+#ifdef XINPUT_2_2
(xev->flags & XIPointerEmulated) ? "emulated" : "",
+#else
+ "",
+#endif
xev->deviceid, xev->sourceid,
xev->event, delta_x, delta_y));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]