x11: Fix bad logic in axis check
https://bugzilla.gnome.org/show_bug.cgi?id=711540
This commit is contained in:
parent
a1378e0833
commit
dd034cccad
@ -1344,11 +1344,8 @@ _clutter_x11_input_device_translate_screen_coord (ClutterInputDevice *device,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
info = &g_array_index (device->axes, ClutterAxisInfo, index_);
|
info = &g_array_index (device->axes, ClutterAxisInfo, index_);
|
||||||
if (info->axis != CLUTTER_INPUT_AXIS_X ||
|
if (!(info->axis == CLUTTER_INPUT_AXIS_X || info->axis == CLUTTER_INPUT_AXIS_Y))
|
||||||
info->axis != CLUTTER_INPUT_AXIS_Y)
|
|
||||||
{
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
width = info->max_value - info->min_value;
|
width = info->max_value - info->min_value;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user