-
Notifications
You must be signed in to change notification settings - Fork 7
libinput: option tapping by default enabled #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
if (!subdevice_has_capabilities(dev, CAP_POINTER)) | ||
return; | ||
|
There was a problem hiding this comment.
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;
?