x11: Fix bad logic in axis check

https://bugzilla.gnome.org/show_bug.cgi?id=711540
This commit is contained in:
Emmanuele Bassi 2014-02-10 17:39:01 +00:00
parent a1378e0833
commit dd034cccad

View File

@ -1344,11 +1344,8 @@ _clutter_x11_input_device_translate_screen_coord (ClutterInputDevice *device,
return FALSE;
info = &g_array_index (device->axes, ClutterAxisInfo, index_);
if (info->axis != CLUTTER_INPUT_AXIS_X ||
info->axis != CLUTTER_INPUT_AXIS_Y)
{
return FALSE;
}
if (!(info->axis == CLUTTER_INPUT_AXIS_X || info->axis == CLUTTER_INPUT_AXIS_Y))
return FALSE;
width = info->max_value - info->min_value;