Bug 402247 - Touchscreen input interpreted incorrectly on multi-head setups
Summary: Touchscreen input interpreted incorrectly on multi-head setups
Status: RESOLVED DUPLICATE of bug 429714
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.14.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-17 17:28 UTC by Andrej Podzimek
Modified: 2021-10-06 19:22 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Podzimek 2018-12-17 17:28:49 UTC
STEPS TO REPRODUCE
1. With a touchscreen laptop, configure a multi-head setup with the laptop on the right and an external (non-touch) monitor on the left.
2. Try to use the laptop's touchscren to control widgets located there.

OBSERVED RESULT
The touch location is interpreted as if the touchscreen covered the entire width of the virtual screen with two displays. For example, a touch in the middle of the laptop's touchscreen occurs (from Plasma's point of view) on the borderline between the two displays, i.e., in the middle of the entire large virtual screen.

EXPECTED RESULT
Touches should be interpreted only within the touchscreen that generates them; a  single touchscreen's control input should never be stretched to cover an entire virtual screen.

SOFTWARE/OS VERSIONS
Linux: 4.19.9 (ArchLinux)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53.0
Qt Version: 5.12.0
Comment 1 Grósz Dániel 2020-11-16 20:24:41 UTC
Workaround: you need to issue an xinput --map-to-output command after changing the arrangement of the displays on X11. KDE should do this automatically. (Wayland seems to get it right.)
Comment 2 Nicolas Niclausse 2020-11-20 13:42:21 UTC
I can confirm that the problem is still there on plasma 5.20.3 on X11 (works on wayland)

The workaround is working for me, thanks (on a Dell 7410 laptop):
xinput --map-to-output "Wacom HID 4957 Finger touch" eDP-1

I tested it on a fedora 33 system; also tried with the plasma-unstable repo to use the latest version of plasma (copr mkyra)
Comment 3 Nate Graham 2021-10-06 19:22:18 UTC

*** This bug has been marked as a duplicate of bug 429714 ***