Skip to content

Conversation

GermanAizek
Copy link

@metux,
This fix helps most laptop users not to change properties in config.

Issue: #6

@GermanAizek GermanAizek force-pushed the fix-tap-touchpad-enabled-default branch 2 times, most recently from 6911434 to 9a5c471 Compare July 12, 2025 20:55
This fix helps most laptop users not to change properties in config.

Issue: X11Libre#6
Signed-off-by: Herman Semenov <GermanAizek@yandex.ru>
Copy link

@artist4xlibre artist4xlibre left a 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

@callmetango callmetango removed their request for review July 15, 2025 11:39
{
BOOL tap = driver_data->options.tapping;
// By default tapping property config is true
BOOL tap = driver_data->options.tapping ? driver_data->options.tapping : 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.

@stefan11111

This comment was marked as off-topic.

@callmetango

This comment was marked as off-topic.

@stefan11111

This comment was marked as off-topic.

@callmetango

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;

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;?

@stefan11111

This comment was marked as off-topic.

@metux

This comment was marked as off-topic.

@ONykyf
Copy link

ONykyf commented Aug 20, 2025

@GermanAizek @dec05eba @artist4xlibre @stefan11111

The default value for "Tapping" comes from libinput_device_config_tap_get_enabled() function from libinput, hence either libinput should be patched (which is difficult), or a convenient InputClass should be applied (which is much easier).

@ONykyf
Copy link

ONykyf commented Aug 21, 2025

@GermanAizek @artist4xlibre

If possible, please verify whether a file /etc/X11/xorg.conf.d/41-libinput.conf

Section "InputClass"
    Identifier "TappingOn"
    MatchIsTouchpad "on"
    Option "Tapping" "on"
EndSection

solves the issue. If it is so, we could add this file permanently to input-libinput.

@ONykyf
Copy link

ONykyf commented Aug 28, 2025

@artist4xlibre
Could you take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants