diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c index 925230204..d6f0a0163 100644 --- a/clutter/x11/clutter-backend-x11.c +++ b/clutter/x11/clutter-backend-x11.c @@ -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;