Bug 481083

Summary: Erroneous clicks on click-and-drag when using trackpoint buttons and clickpad at the same time
Product: [Plasma] kwin Reporter: Thomas Shaw <thomas.shaw>
Component: libinputAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.27.10   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas Shaw 2024-02-08 20:42:42 UTC
SUMMARY
I'm using a Thinkpad 13 laptop which has both physical mouse buttons associated with the trackpoint and a clickpad. I often use the buttons of the trackpoint while directing the location of the pointer with the clickpad. If I click and hold the physical left mouse button (associated with the TrackPoint), and drag several times on the TrackPad, the Trackpad sends left mouse button release and press events at the beginning of every drag. This makes it difficult to select large regions of text, where multiple motions across the trackpad may be required. Note that if I instead click and hold the trackpad button there will not be repeated left button press and release events.

See also the analogous bug report in wlroots, and the merge request that fixes it:
https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3665
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4185

STEPS TO REPRODUCE
1. Click and hold left button of trackpoint at start of desired selection
2. Move cursor using clickpad across part of the desired selection
3. Lift finger, retake, and continue moving cursor across the rest of the selection

OBSERVED RESULT
The first part of selection (captured by step 2) is lost at the beginning of step 3.

EXPECTED RESULT
Selection should continue from the position where the cursor started to where it ended at the end of step 3.

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

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-02-15 03:46:01 UTC
FWIW I have a ThinkPad with the same hardware arrangement and I cannot reproduce the issue in Plasma 6 Wayland. Are you using X11 or Wayland?
Comment 2 Thomas Shaw 2024-02-15 04:35:12 UTC
(In reply to Nate Graham from comment #1)
> FWIW I have a ThinkPad with the same hardware arrangement and I cannot
> reproduce the issue in Plasma 6 Wayland. Are you using X11 or Wayland?

I'm using Wayland, but still Plasma 5 as packaged by Arch Linux. KWin version is 5.27.10 as I noted. So could be this has been fixed in the mean time. Is there an easy way for me to install a plasma 6 session here and try it out?
Comment 3 Nate Graham 2024-02-15 15:25:26 UTC
I wouldn't say it's easy, but it's possible. :) The kde-unstable arch repos will upgrade you, but that's a full system upgrade of everything. If you're not feeling that adventurous, it might be easiest to just wait two weeks for the initial public release.

Regardless, please do keep us posted!