1
0
Fork 0

backends/x11: Fix off by one in debug output

We are looking the atom name based on the wrong index, as the
axis is incremented to cater for the extra CLUTTER_INPUT_AXIS_IGNORE
value.

CID: #1418330
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2061>
This commit is contained in:
Carlos Garnacho 2021-10-24 21:57:41 +02:00
parent e50460e396
commit b3046cca2d

View file

@ -156,7 +156,9 @@ translate_valuator_class (Display *xdisplay,
class->resolution);
g_debug ("Added axis '%s' (min:%.2f, max:%.2fd, res:%d) of device %d",
clutter_input_axis_atom_names[axis],
axis == CLUTTER_INPUT_AXIS_IGNORE ?
"Ignored" :
clutter_input_axis_atom_names[axis - 1],
class->min,
class->max,
class->resolution,