fix: unnecessary braces and mistake in doc

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/988>
This commit is contained in:
Tarcísio Eduardo Moreira Crocomo 2024-04-09 23:40:34 -03:00
parent 46d1fff0b0
commit 955158f982
2 changed files with 3 additions and 3 deletions

View file

@ -1383,9 +1383,9 @@ int
tp_post_button_events(struct tp_dispatch *tp, uint64_t time)
{
if (tp->buttons.is_clickpad ||
tp->device->model_flags & EVDEV_MODEL_APPLE_TOUCHPAD_ONEBUTTON) {
tp->device->model_flags & EVDEV_MODEL_APPLE_TOUCHPAD_ONEBUTTON)
return tp_post_clickpadbutton_buttons(tp, time);
}
return tp_post_physical_buttons(tp, time);
}

View file

@ -5860,7 +5860,7 @@ libinput_device_config_click_set_clickfinger_button_map(struct libinput_device *
*
* Get the finger number to button number mapping for clickfinger.
*
* The return value for a device that does not support tapping is always
* The return value for a device that does not support clickfinger is always
* @ref LIBINPUT_CONFIG_CLICKFINGER_MAP_LRM.
*
* @param device The device to configure