Bug 465432 - Middle click with three-fingers touch on touchpad is lost randomly after using 4-fingers swipe gesture
Summary: Middle click with three-fingers touch on touchpad is lost randomly after usin...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: Gestures (other bugs)
Version First Reported In: 6.0.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-07 17:04 UTC by Alexandre Hen
Modified: 2024-04-10 09:35 UTC (History)
3 users (show)

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


Attachments
Configuration (93.17 KB, image/png)
2023-02-07 17:04 UTC, Alexandre Hen
Details
cat /proc/bus/input/devices (4.04 KB, text/plain)
2023-02-07 17:09 UTC, Alexandre Hen
Details
Output of libinput record (749.62 KB, text/plain)
2024-04-09 18:28 UTC, vive.linux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Hen 2023-02-07 17:04:48 UTC
Created attachment 156032 [details]
Configuration

SUMMARY
I lose three-fingers click from the touchpad for Middle-Click after using the 4 fingers gesture or Meta+W. It is especially visible in the tabs bar of Firefox for closing or opening tabs. Instead, and after multiple attempts of three-fingers touch, it shows, sometimes, the context menu instead (what I get usually with a two-fingers touch on my touchpad). It is not systematic after every gestures... Important note : it does not seem happen with Meta+W.
Firefox is configured to have his titlebar disabled.
I set plasma to have a right click with a two-fingers touch and a middle click with a three-fingers touch.

I'm on Fedora Kinoite 37 Beta on Wayland.


STEPS TO REPRODUCE
1. Use the gesture "4-fingers swipe" up or down, multiple times in a row.
2. After each #1, try to open or close a tab in Firefox, or paste a text that you copied in KWrite, by using a three-fingers touch on your touchpad


OBSERVED RESULT
After a few tries, the context menu is showing (a two-fingers action usually) instead of having the action associated with a three-fingers touch.
You can have the usual behaviour by triggering a new #1, then #2.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexandre Hen 2023-02-07 17:09:22 UTC
Created attachment 156033 [details]
cat /proc/bus/input/devices
Comment 2 vive.linux 2024-04-09 18:24:31 UTC
I have had the same problem since I started using wayland (with kde plasma) in may 2022 but I have the feeling that it got worse recently : previously it only happened a few times a day, now it is every few minutes. I am now using plasma 6 but I wouldn't say for sure that it got worse since plasma 6. Maybe it is just me that does whatever triggers the problem more often.

Contrary to what OP suggests, I'm not sure the problem is triggered by using 4 finger swipe (if it is, it is not every time). As far as I am concerned three finger tap (emulating middle click) or three finger swipe stops working randomly and I usually get it back working using a 4 finger swipe.

I do not think this is a general driver bug because it never happens with hyprland that I sometimes use on the same machine with the same OS (arch linux). It makes me think it is specific to kde plasma. Not sure.

My laptop is a Lenovo E595 and this is what I can find in journalctl just after the problem is triggered :

avr 09 19:45:22 manchester kwin_wayland[25032]: kwin_libinput: Libinput: event12 - SynPS/2 Synaptics TouchPad: client bug: event processing lagging behind by 65ms, your system is too slow
avr 09 19:45:26 manchester kwin_wayland[25032]: kwin_libinput: Libinput: event12 - SynPS/2 Synaptics TouchPad: libinput bug: invalid gesture event GESTURE_EVENT_HOLD_TIMEOUT in state GESTURE_STATE_HOLD
avr 09 19:46:11 manchester kwin_wayland[25032]: kwin_libinput: Libinput: event12 - SynPS/2 Synaptics TouchPad: libinput bug: invalid gesture event GESTURE_EVENT_HOLD_TIMEOUT in state GESTURE_STATE_HOLD

(this happened after I launched a libinput record command, I'll try to post an attachment of the output)
Comment 3 vive.linux 2024-04-09 18:28:28 UTC
Created attachment 168314 [details]
Output of libinput record

Output of libinput record. The bug happened soon after beginning of recording.
Comment 4 Alexandre Hen 2024-04-09 21:06:10 UTC
Hello !

Thank you vive.linux.

It happened today on Opensuse Tumbleweed 240407, on my P14s AMD Gen1 : I lost the three fingers to middle click after using the four fingers swipe gesture.
Using a 4 fingers swipe again resolved the issue.

Thank you !
Comment 5 Zamundaaa 2024-04-10 09:35:30 UTC
This is a libinput bug, please report this at https://gitlab.freedesktop.org/libinput/libinput/-/issues