mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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",
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user