Bug 431200 - Unable to set double click for right click in touchpad settings
Summary: Unable to set double click for right click in touchpad settings
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_touchpad (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2021-01-05 23:19 UTC by a.key
Modified: 2021-08-08 05:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kcm_touchpad X11 (127.62 KB, image/png)
2021-01-05 23:19 UTC, a.key
Details
kcm_touchpad wayland (132.38 KB, image/png)
2021-01-05 23:19 UTC, a.key
Details
another_kcm_touchpad X11 (121.50 KB, image/png)
2021-04-15 05:40 UTC, Andrey
Details
another_kcm_touchpad wayland (91.72 KB, image/png)
2021-04-15 05:40 UTC, Andrey
Details
The attached patch enables one finger tapping in libinput (here 1.10.5). (412 bytes, patch)
2021-08-07 19:58 UTC, Andreas Hartmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a.key 2021-01-05 23:19:02 UTC
Created attachment 134597 [details]
kcm_touchpad X11

KCM Touchpad settings don't allow setting up "clickfinger" Click method also known as "Press anywhere with two fingers" option for right click.

Tested this on 2 Thinkpads: T450s and ThinkPad X1 Carbon Gen 8

Under X the option is displayed but is disabled and cannot be enabled. Under wayland this option is completely missing.

Under wayland libinput list-devices properly shows the properties are available:

Device:           Synaptics TM3053-004
Kernel:           /dev/input/event17
Group:            8
Seat:             seat0, default
Size:             97x53mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

It's possible to manually enable the method via dbus:
qdbus org.kde.KWin /org/kde/KWin/InputDevice/event17 org.kde.KWin.InputDevice.clickMethodClickfinger true


STEPS TO REPRODUCE
1. Open System settings
2. Click on Input Devices category
3. Click on Touchpad Input Devices



OBSERVED RESULT

Depending if under X11 or wayland the option is disabled or completely missing

EXPECTED RESULT
Option "Right click" is available and possible to choose via a radio option type with the following choices available:
- Press bottom-right corner
- Press anywhere with two fingers

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 33 
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Comment 1 a.key 2021-01-05 23:19:48 UTC
Created attachment 134598 [details]
kcm_touchpad wayland
Comment 2 Nate Graham 2021-01-06 05:26:55 UTC
Yes this KCM's user interface is quite buggy. It needs an extensive code overhaul. I'm not surprised that you're experiencing this issue, though I cannot reproduce it.
Comment 3 Andrey 2021-04-15 05:40:10 UTC
Created attachment 137622 [details]
another_kcm_touchpad X11

I'm experiencing the same (or very similar) issue: right click settings are present under X11 but missing when using Wayland.

Plasma 5.21.4 on Arch.
Comment 4 Andrey 2021-04-15 05:40:54 UTC
Created attachment 137623 [details]
another_kcm_touchpad wayland
Comment 5 Andreas Hartmann 2021-08-07 18:08:52 UTC
It's impossible to activate "tap to click" using one finger and double click with two fingers (5.22.4). How can I configure this in a config file like in X? I'm really wondering why even basics just don't work in Wayland.
Comment 6 Nate Graham 2021-08-07 18:46:44 UTC
On Wayland, all input settings use Libinput. You would need to ask the developers to implement that feature upstream at https://gitlab.freedesktop.org/libinput/libinput/-/issues/
Comment 7 Andreas Hartmann 2021-08-07 18:55:36 UTC
"You would need to ask the developers to implement that feature"

This should be referred to adding a config file?
Comment 8 Nate Graham 2021-08-07 19:18:43 UTC
I don't know enough about Libinput to say one way or another, but I suspect not. Please contact them and file a bug for that upstream; there is nothing KDE can do without upstream driver support.
Comment 9 Andreas Hartmann 2021-08-07 19:58:47 UTC
Created attachment 140572 [details]
The attached patch enables one finger tapping in libinput (here 1.10.5).
Comment 10 Nate Graham 2021-08-07 20:49:10 UTC
You can already enable one-finger tapping in the UI...
Comment 11 Andreas Hartmann 2021-08-08 05:20:23 UTC
I have to apologize! Got it working via UI after installing an actual libinput (1.18.1). Thanks for your hints!