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
This commit is contained in:
parent
51f3eb06e3
commit
b2b22dbe6c
@ -891,7 +891,12 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
"invalid",
|
"invalid",
|
||||||
event->scroll.x,
|
event->scroll.x,
|
||||||
event->scroll.y,
|
event->scroll.y,
|
||||||
(xev->flags & XIPointerEmulated) ? "yes" : "no");
|
#ifdef HAVE_XINPUT_2_2
|
||||||
|
(xev->flags & XIPointerEmulated) ? "yes" : "no"
|
||||||
|
#else
|
||||||
|
"no"
|
||||||
|
#endif
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -939,7 +944,12 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
event->button.x,
|
event->button.x,
|
||||||
event->button.y,
|
event->button.y,
|
||||||
event->button.axes != NULL ? "yes" : "no",
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user