mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
e50460e396
commit
b3046cca2d
@ -156,7 +156,9 @@ translate_valuator_class (Display *xdisplay,
|
|||||||
class->resolution);
|
class->resolution);
|
||||||
|
|
||||||
g_debug ("Added axis '%s' (min:%.2f, max:%.2fd, res:%d) of device %d",
|
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->min,
|
||||||
class->max,
|
class->max,
|
||||||
class->resolution,
|
class->resolution,
|
||||||
|
Loading…
Reference in New Issue
Block a user