Bug 377794

Summary: Mouse cursors are oversized when using a rotated screen
Product: [Plasma] kwin Reporter: Martin Ueding <mu>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.8.6   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Mouse cursor on (left) Windows decoration, (middle) Firefox bulk, and (bottom) Plasma panel

Description Martin Ueding 2017-03-19 09:40:54 UTC
Created attachment 104643 [details]
Mouse cursor on (left) Windows decoration, (middle) Firefox bulk, and (bottom) Plasma panel

I use a screen which is rotated by 90 degrees. This leads to strange DPI settings, all the text will become huge. I work around this by calling `xrandr --dpi 96` after rotating the screen.

The mouse cursors are still very strange. On the Breeze decoration, it is comically oversized. Within Firefox, it has the normal size but a different shape. And on the Plasma Panel, the cursor is really large again. Resize handles are also very large.

I guess this has something to do with DPI scaling.

I'm using Fedora 25 with KDE Frameworks 5.32.0.
Comment 1 Martin Flöser 2017-03-19 17:17:34 UTC
You could try setting a specific resolution in the mouse cursor theme. In general the theme is loaded based on the DPI. If you have a weird dpi, the mouse cursor might get weird. Nothing special there. Given that: hardcode the mouse cursor theme size in the config module.
Comment 2 Martin Ueding 2017-03-19 17:21:40 UTC
Yes, that fixed it. Thanks!