Bug 435728

Summary: When using scaling, cursor is unconditionally scaled even when an appropriate larger pixmap is available
Product: [Plasma] kwin Reporter: Jan Keith Darunday <jkcdarunday>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: bugseforuns, kde, nate
Priority: NOR    
Version: 5.21.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.0
Bug Depends on:    
Bug Blocks: 459161    
Attachments: Screenshot showing normal-sized non-pixelated cursor on screenshots
Camera picture of how it actually displays on my screen

Description Jan Keith Darunday 2021-04-14 14:22:09 UTC
SUMMARY
Cursor is oversized and pixelated when using 150% scale on Wayland

STEPS TO REPRODUCE
1. On Wayland, switch to 150% scale

OBSERVED RESULT
Cursor is oversized and pixelated.
Taking a screenshot shows a normal-sized cursor instead (as you would see it from X11)


EXPECTED RESULT
Cursor should be the same as in an X11 session.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.11.13-zen1-1-zen
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
I've observed this in 5.20 as well.
Comment 1 Nate Graham 2021-04-14 18:44:17 UTC
Can you share a screenshot? I suspect that this is in fact the intended appearance, and you've just gotten used to the fact that cursors are not scaled properly when using scaling on X11. :) The pixelation could be caused by the cursor not having enough sizes. They are raster images so they will get pixellated or blurry if up-scaled.
Comment 2 Jan Keith Darunday 2021-04-15 02:29:45 UTC
Created attachment 137620 [details]
Screenshot showing normal-sized non-pixelated cursor on screenshots

Hi, taking a screenshot with spectacle shows an unpixelated and normal-sized cursor instead. I also notice that the cursor is in the wrong position compared to what's on my screen.

In this screenshot, the cursor on my screen is actually around the Size: 36 selector at the bottom part of the window but spectacle saves it as if the cursor is outside the window.

I'll follow up with a camera photo of my screen showing how the cursor appears.
Comment 3 Jan Keith Darunday 2021-04-15 02:46:03 UTC
Created attachment 137621 [details]
Camera picture of how it actually displays on my screen

Here is a picture of it. The cursor is larger than the button in real life.
Comment 4 Jan Keith Darunday 2021-04-15 02:47:53 UTC
If it's the scaling, is there perhaps a way to disable it only for the cursor so I can use size 36 or 48 instead without the scaling? Thanks
Comment 5 Nate Graham 2021-04-15 15:54:16 UTC
That seems reasonable. So when using a 24px cursor and 200% scaling, it should give you the 48px pixmap if available. If you were already using the 48px cursor though, it would still have to scale when no larger size is present in the cursor theme.
Comment 6 David Edmundson 2023-01-17 13:45:56 UTC

*** This bug has been marked as a duplicate of bug 459161 ***
Comment 7 Nate Graham 2023-01-17 16:27:35 UTC
Not quite a duplicate of Bug 459161; rather a sub-task of it given that it's an umbrella bug.
Comment 8 Nate Graham 2023-12-11 16:41:15 UTC
This has been fixed in the Breeze cursor theme with https://invent.kde.org/plasma/breeze/-/commit/215941542b886b20d1364fefd8c28d733b96fc20. Other themes will need similar fixes, whoich unfortunately is outside of the scope of what we can do here.