mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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;
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user