Touchscreen input on wrong screen in multi monitor setup


I have two screens on my desktop pc and wanted to add a third portable touchscreen. The screen is plugged in via HDMI, the other two with Displayport. But the touch input of the touchscreen gets sent to my main screen. It works when I unplug both non-touchscreen monitors, because it remaps automatically to the only screen and when I plug them in again the touch input stays on the touchscreen. To get touch input I have to run a second USB cable to the PC and I think that’s why it doesn’t know to which screen it belongs (Took me a while until I realized that). Now I want to map the touch input to the right screen. As I searched for solutions I stumbled upon xinput and libinput. I think wayland uses libinput, so that’s what I need.
Under it says: *“Calibration is available for some direct-input devices (touch screens, graphics tablets, etc.). The purpose of calibration is to ensure the input lines up with the output and the configuration data is a transformation matrix. It is thus not expected that the user sets this option. The desktop environment should provide an interface for this.”
*And that sounds like the thing I need, but I couldn’t find a setting to do that.
And if there is no setting for that: Could you do it manually and so that it persists after reboot?
Thanks for any help in advance :slight_smile:

Best ragards

Operating System: openSUSE Tumbleweed 20220518
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.17.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT

Crossposted on Reddit r/linuxquestions: