Bug 105104 - Cannot set tap button map with wayland
Summary: Cannot set tap button map with wayland
Status: RESOLVED NOTABUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 23:53 UTC by ron.koerner+fqgd
Modified: 2018-02-16 06:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description ron.koerner+fqgd 2018-02-14 23:53:03 UTC
I'd like to change the Tapping Button Map to LMR when using Wayland. Since there is no way to set that via GUI or gsettings, I wrote a little script using python-libinput (https://pypi.python.org/pypi/python-libinput):

    from libinput import LibInput
    from libinput.constant import TapButtonMap
    li=LibInput()
    device=li.path_add_device('/dev/input/event7')
    print device.config_tap_get_button_map()
    print device.config_tap_set_button_map(TapButtonMap.LMR)
    print device.config_tap_get_button_map()
    li.path_remove_device(device)

It returns this output (when run as root):

    TapButtonMap.LRM
    ConfigStatus.SUCCESS
    TapButtonMap.LMR

Unfortunately tapping with two fingers still produces a right click and no middle click.

After reading the FAQ multiple times, I have the suspicion that this is not supposed to work and only weston is actually allowed and able to change the configuration.

Is that accurate or is something wrong with my approach, python-libinput or libinput itself?
Comment 1 ron.koerner+fqgd 2018-02-14 23:55:00 UTC
Addition: I'm using libinput 1.8.2-1ubuntu2 on Ubuntu 17.10.
Comment 2 Peter Hutterer 2018-02-16 06:28:58 UTC
yeah, you're creating a second context here. and since libinput doesn't modify the devices, it's just an independent context that doesn't affect the one in the compositor (weston in this case?). Unless your compositor provides some way of setting this, not much you can do here.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.