Skip to content

Silence a compiler warning

../src/xf86libinput.c: In function ‘prop_draglock_set_pairs’: ../src/xf86libinput.c:5153:30: warning: comparison is always false due to limited range of data type [-Wtype-limits] 5153 | if (pairs[i] > MAX_BUTTONS)

MAX_BUTTONS is defined by the server so let's use a temporary local variable to silence the compiler.

Merge request reports

Loading