Bug 366605 - Tap-to-click missing on Wayland
Summary: Tap-to-click missing on Wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: libinput (show other bugs)
Version: git master
Platform: Tru64 Unix Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-10 18:59 UTC by Matthias Fauconneau
Modified: 2016-11-08 12:12 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
mgraesslin: Wayland+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fauconneau 2016-08-10 18:59:41 UTC
Tapping the trackpad does not click.
libinput supports it, but it needs to be enabled.
if I understand correctly, libinput leaves configuration to the application, and has no standard configuration method.
KWin debug console shows tapEnabledByDefault=false.
I do not know where to set this flag, if possible.
I could not find any relevant option in System Settings > Mouse.
So this might actually be a System Settings bug, I am not sure how the cooperation works.
I understand libinput philosophy is to default to disable this feature.
Maybe default to enable would be compatible with KDE philosophy.
It would avoid some hassle for new configurations.
It would be especially sensible on touchpads without buttons.
And on devices where the default system defaults to tap-to-click (in this case a Chromebook, I assume Windows and iOS defaults to tap-to-click).
































































































































































































































































































































































































































































Reproducible: Always
Comment 1 Martin Flöser 2016-08-11 05:45:41 UTC
Thanks for your bug reports on Wayland!

The main problem here is that the touchpad KCM is currently still X11 only. This needs to be made working on Wayland, then we can configure it from the KCM and apply the configuration in KWin.
Comment 2 Martin Flöser 2016-08-12 05:43:18 UTC
I pushed a few config option properties yesterday including tap-to-click. Once https://phabricator.kde.org/D2407 is integrated it will be possible to at least configure through DBus.
Comment 3 Martin Flöser 2016-08-27 14:18:10 UTC
This should now be configurable through DBus at least.
Comment 4 Roman Gilg 2016-10-09 15:02:58 UTC
For anyone interested, here a little tutorial how to do the configuration over DBus:

# Get all possible InputDevice events:
qdbus org.kde.KWin.InputDevice
 
# For every such event check its name, until you find the one matching your touchpad:
qdbus org.kde.KWin.InputDevice /org/kde/KWin/InputDevice/eventX org.freedesktop.DBus.Properties.Get org.kde.KWin.InputDevice name
 
# For this one get current tapToClick value:
qdbus org.kde.KWin.InputDevice /org/kde/KWin/InputDevice/eventY org.freedesktop.DBus.Properties.Get org.kde.KWin.InputDevice tapToClick
 
# It'll be false. So set it to true:
qdbus org.kde.KWin.InputDevice /org/kde/KWin/InputDevice/eventY org.freedesktop.DBus.Properties.Set org.kde.KWin.InputDevice tapToClick true
 
# Confirm, that it changed to true:
qdbus org.kde.KWin.InputDevice /org/kde/KWin/InputDevice/eventY org.freedesktop.DBus.Properties.Get org.kde.KWin.InputDevice tapToClick

When activated, also Multitouch works directly. Nice work, Martin. We've to talk again about the touchpad KCM stuff some time in the future
Comment 5 itl 2016-10-15 18:23:01 UTC
Sweet!  This got two finger tap for right click to work as well.   It's event9 on my 2015 XPS13.
Comment 6 Alivema4ever 2016-10-19 11:20:03 UTC
@Roman, thanks for the workaround. Will try it later when starting plasma compositor.
Comment 7 Alivema4ever 2016-10-19 12:43:39 UTC
(In reply to Alivema4ever from comment #6)
> @Roman, thanks for the workaround. Will try it later when starting plasma
> compositor.

The workaround provided by Roman is working. Tap to click is now available on Plasma.
Now waiting for this to be configurable via system settings input configuration.
Comment 8 Alivema4ever 2016-10-19 12:46:54 UTC
The tapToClick configuration enables both two finger tap for right-click emulation and three finger tap for middle-click emulation.
Comment 9 G360 2016-10-22 19:20:03 UTC
I did a  "org.freedesktop.DBus.Properties.GetAll"  on my input device to search for a Natural Scrolling configuration option, and it seems to be missing. Is this to be handled in a different but report or all input related here as well?
Comment 10 David Strobach 2016-10-28 17:25:16 UTC
(In reply to Götz from comment #9)
> I did a  "org.freedesktop.DBus.Properties.GetAll"  on my input device to
> search for a Natural Scrolling configuration option, and it seems to be
> missing. Is this to be handled in a different but report or all input
> related here as well?

See here: https://bugs.kde.org/show_bug.cgi?id=371791
Comment 11 Martin Flöser 2016-11-04 09:06:30 UTC
Marking as fixed as from KWin side everything is there now.
Comment 12 Roman Gilg 2016-11-08 12:12:34 UTC
FYI Martin has now also made it possible to save the value of tapToClick. So if you're on the KWin master branch you can issue the commands I posted earlier and it'll remember it even after restart. I assume it will be shipped with 5.9.

I'm working at the moment on the KCM, so you can change the setting with the GUI at some point in the future.