Bug 515747 - Pen/stylus input not rotated when screen is rotated
Summary: Pen/stylus input not rotated when screen is rotated
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: libinput (other bugs)
Version First Reported In: 6.5.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-08 22:54 UTC by tomsala
Modified: 2026-02-10 21:24 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomsala 2026-02-08 22:54:08 UTC
SUMMARY
On devices with pen/stylus input on a rotateable screen (convertible laptops, tablets, ...), the pen input isn't rotated together with the screen.

STEPS TO REPRODUCE
1. Get a laptop with pen/stylus support
2. In System Settings -> Display & Monitor, set normal orientation, or enable automatic rotation and have your device in regular orientation
3. Verify that pen/stylus input is at the correct position by hoverint your pen over the screen, the mouse pointer should appear directly under the pen
4. Rotate the screen by turning your device or manually choosing a different orientation

OBSERVED RESULT
Pen/stylus input doesn't align with the displayed content anymore: Hovering the stylus over the screen will show the stylus marker / mouse pointer in a different location, depending on the rotation.

EXPECTED RESULT
Pen input directly on a screen should align with the screen at all times.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 43 KDE
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION
Ideally add a new setting under System Settings -> Drawing Tablet -> Display -> Orientation to automatically follow the screen orientation.
Comment 1 tomsala 2026-02-08 22:59:18 UTC
Hint: Finger input on the touch screen is not affected, it is always aligned with the displayed content in all screen orientations.
Comment 2 tomsala 2026-02-10 21:24:49 UTC
Update:
It actually works correctly, but not with the default settings.

Those settings in drawing tablet -> display work as intended:
Map to screen: select the screen with digitizer
Orientation: default
Mapped Area: stretch and fill

Any other settings result in weird behaviour, especially with another screen attached.
Maybe make those the default settings when a screen with a digitizer is detected? The current default settings may make sense for a drawing tablet, but not for pen on screen. Or is it difficult to distinguish between digitizer and drawing tablet?