Bug 408338

Summary: Options to set middle click are missing on Wayland
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_touchpadAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: avinashrocks1990, butirsky, guimarcalsilva, kde, kde, meven.car, meven29, nate
Priority: NOR Keywords: wayland
Version: 5.17.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=408116
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: touchpad kcm on X11
touchpad kcm on Wayland
screenshot

Description Patrick Silva 2019-06-05 11:57:05 UTC
Created attachment 120597 [details]
touchpad kcm on X11

SUMMARY
Compare the screenshots taken on X11 and Wayland.
The radio buttons and their labels to set the right click are missing on Wayland.

EXPECTED RESULT
The radio buttons and their labels to set the right click are present

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.16.80
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.0
Comment 1 Patrick Silva 2019-06-05 11:57:50 UTC
Created attachment 120598 [details]
touchpad kcm on Wayland
Comment 2 Patrick Silva 2019-06-05 12:01:21 UTC
ops, I meant options to set "middle click", not "right click".
Comment 3 Patrick Silva 2020-01-18 16:41:33 UTC
this problem persists

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2
Comment 4 Patrick Silva 2020-10-29 10:53:07 UTC
*** Bug 428413 has been marked as a duplicate of this bug. ***
Comment 5 Méven Car 2020-12-08 14:16:41 UTC
If we can't support this in Wayland we should hide the setting.
Comment 6 Méven Car 2021-04-27 14:04:36 UTC
We should be able to implement this :
https://wayland.freedesktop.org/libinput/doc/1.11.3/middle_button_emulation.html

It should be possible to support. As a reference, https://phabricator.kde.org/D28296
Comment 7 guimarcalsilva 2021-06-24 01:15:03 UTC
This is not a Wayland bug. The same happens to me on the X11 session, but can be easily solved by clicking on another KCM and coming back. I've just tested with Wayland and the middle click emulation option was unavailable the first time I opened the KCM, but when I clicked somewhere else and back on Touchpad settings the setting showed up normally.

I'm pretty sure it's just a bug with KCM, not Wayland specific.

Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-59-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Comment 8 guimarcalsilva 2021-06-24 01:22:48 UTC
The same bug can be seen on X11 on this Plasma 5.21 review: 
https://youtu.be/da-rOlS_o58?t=683 (11m23s)
Comment 9 Nate Graham 2021-09-27 19:55:15 UTC
*** Bug 442958 has been marked as a duplicate of this bug. ***
Comment 10 Bug Janitor Service 2021-10-04 13:19:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/584
Comment 11 Nate Graham 2021-10-04 17:37:23 UTC
Git commit c2b797ff3738ca55a432ea447c005bc92097bdfa by Nate Graham, on behalf of Méven Car.
Committed on 04/10/2021 at 17:36.
Pushed by ngraham into branch 'master'.

KCM Touchpad: hide right and middle click sections when unavailable

For the right click section, show it only if one its two options is available.

For the middle-click section, show it if at least one of its option is visible.

M  +4    -2    kcms/touchpad/kcm/libinput/touchpad.qml

https://invent.kde.org/plasma/plasma-desktop/commit/c2b797ff3738ca55a432ea447c005bc92097bdfa
Comment 12 Nate Graham 2021-10-04 17:37:56 UTC
Git commit 6d8d00e832dc76988c41bba39bc6ecb19783414c by Nate Graham, on behalf of Méven Car.
Committed on 04/10/2021 at 17:37.
Pushed by ngraham into branch 'Plasma/5.23'.

KCM Touchpad: hide right and middle click sections when unavailable

For the right click section, show it only if one its two options is available.

For the middle-click section, show it if at least one of its option is visible.


(cherry picked from commit c2b797ff3738ca55a432ea447c005bc92097bdfa)

M  +4    -2    kcms/touchpad/kcm/libinput/touchpad.qml

https://invent.kde.org/plasma/plasma-desktop/commit/6d8d00e832dc76988c41bba39bc6ecb19783414c
Comment 13 Patrick Silva 2021-10-29 11:40:40 UTC
Currently I can reproduce on X11, but I can't on Wayland.
The bug occurs on X11 when I open Touchpad KCM directly via icon on desktop
or via icon in 'Most used settings' section of 'Quick settings' page of
System Settings. The bug disappears after switching to another KCM
and switching back to Touchpad KCM, as mentioned in comment 7.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 14 Patrick Silva 2021-10-29 11:56:50 UTC
Created attachment 142991 [details]
screenshot

ops, as we can see in the screenshot attached to this comment, the bug on X11
affects right-click options (they are greyed out), not middle-click ones.
I'm closing this bug. If anyone is able to reproduce the bug with middle-click
options, feel free to reopen.