-
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?
libinput: option tapping by default enabled #7
Conversation
6911434
to
9a5c471
Compare
This fix helps most laptop users not to change properties in config. Issue: X11Libre#6 Signed-off-by: Herman Semenov <GermanAizek@yandex.ru>
9a5c471
to
2c360d5
Compare
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.
Did a build with this commit included, installed the resulting package on a laptop and restarted Xorg.
A simple test shows that tapping is working, so enabled by default as intended.
artist
{ | ||
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 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.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
{ | ||
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 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;
?
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@GermanAizek @dec05eba @artist4xlibre @stefan11111 The default value for "Tapping" comes from |
If possible, please verify whether a file
solves the issue. If it is so, we could add this file permanently to input-libinput. |
@artist4xlibre |
@metux,
This fix helps most laptop users not to change properties in config.
Issue: #6