Suspicious repeated check for LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE in xf86libinput
if (profile_mask & LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE)
profiles[0] = TRUE;
if (profile_mask & LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE)
profiles[1] = TRUE;
Shouldn't the second be ..._PROFILE_FLAT
? Throughout the rest of the file it looks like profiles[1]
is used for flat.