Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/xf86libinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -5641,7 +5641,8 @@ LibinputInitTapProperty(DeviceIntPtr dev,
struct xf86libinput *driver_data,
struct libinput_device *device)
{
BOOL tap = driver_data->options.tapping;
// By default tapping property config is true
BOOL tap = driver_data->options.tapping ? driver_data->options.tapping : TRUE;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(x ? x : TRUE) == TRUE for all values of x.
Are you sure this is right?
Can this be later turned off?
If this is right, why not just Book tap = TRUE;?

Copy link
Contributor

@dec05eba dec05eba Jul 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the correct way to set the default value. This just ignores the value the user sets in the config file. The default value should be set in xf86libinput_parse_tap_option. Take a look at how it's done in xf86libinput_parse_scroll_pixel_distance_option. I dont have a laptop anymore so I cant do any of that myself. The default value for line 5663 also needs to be changed as well in the same way.


if (!subdevice_has_capabilities(dev, CAP_POINTER))
return;
Expand Down