[clutter] x11/device-manager-xi2: Put XIPointerEmulated under conditionals
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] x11/device-manager-xi2: Put XIPointerEmulated under conditionals
- Date: Mon, 3 Sep 2012 07:47:16 +0000 (UTC)
commit b2b22dbe6c246e45206ed6d4029f97594861e4dc
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Sep 2 22:48:52 2012 +0100
x11/device-manager-xi2: Put XIPointerEmulated under conditionals
There are a couple of debugging messages using XInput 2.2 symbols
unconditionally, and it breaks builds on older systems.
https://bugzilla.gnome.org/show_bug.cgi?id=683219
clutter/x11/clutter-device-manager-xi2.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
index 36bd107..762728b 100644
--- a/clutter/x11/clutter-device-manager-xi2.c
+++ b/clutter/x11/clutter-device-manager-xi2.c
@@ -891,7 +891,12 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
"invalid",
event->scroll.x,
event->scroll.y,
- (xev->flags & XIPointerEmulated) ? "yes" : "no");
+#ifdef HAVE_XINPUT_2_2
+ (xev->flags & XIPointerEmulated) ? "yes" : "no"
+#else
+ "no"
+#endif
+ );
break;
default:
@@ -939,7 +944,12 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
event->button.x,
event->button.y,
event->button.axes != NULL ? "yes" : "no",
- (xev->flags & XIPointerEmulated) ? "yes" : "no");
+#ifdef HAVE_XINPUT_2_2
+ (xev->flags & XIPointerEmulated) ? "yes" : "no"
+#else
+ "no"
+#endif
+ );
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]