Bug 505446

Summary: With certain display resolutions clicks and taps are registered in the wrong area of the display in portrait mode
Product: [Plasma] kwin Reporter: Fernando M. Muniz <fernandommuniz>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kdedev, nate
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fernando M. Muniz 2025-06-10 19:28:06 UTC
1- Have a very low resolution, such as 720x1280p (1:16).
2- Go to Display & Monitor under System Settings.
3- Try to click on one of the monitor icons to change the Orientation.

Result:
The pointer is clicking on a different place than what it is being displayer.

Additional Information:
Discovered the issue from here, where the user (using Bazzite [Fedora Kinoite]) clicks a monitor icon, but ends up clicking on parts of the menu on the left side, likely because they're underneath the monitor icons.
https://www.youtube.com/watch?v=ZILXRqTEl3g&t=1289s

I've seen multiple handhelds having Bazzite/Fedora Kinoite installed, and all of them start with the wrong orientation.
So fixing this should help users of all small monitors, not just the rare device in the video.
Comment 1 TraceyC 2025-06-11 18:16:35 UTC
I tested this in a KDE Neon Testing VM with 1280 x 768 (5:3) resolution and am able to reproduce, using mouse and keyboard so this isn't touch dependent

I am *not* able to reproduce on the SteamDeck OLED, stable channel
Mind, setting to "Landscape" (first icon on the left) makes the screen tall, not wide
Taps were correctly registered to the place I tapped in all display orientations

The video shows the screen in portrait mode 720 x 1280(9:16) @200%
(Note, the ratio is not 1:16)
The person taps on the icon for portrait mode
The tap is applied to "Bluetooth" in the left panel instead of the display icon

Note: The comments on the video indicated the person was using a very old SteamDeck prototype unit
There's a notification in the systray that updates are available.
Comment 2 TraceyC 2025-06-11 18:19:45 UTC
I was also able to reproduce on the Neon Testing VM with 1920 x 1200 (16:10) @100
Comment 3 Nate Graham 2025-06-12 15:27:51 UTC
Does it happen on X11, Wayland, or both?