Bug 435728 - When using scaling, cursor is unconditionally scaled even when an appropriate larger pixmap is available
Summary: When using scaling, cursor is unconditionally scaled even when an appropriate...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.21.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks: 459161
  Show dependency treegraph
 
Reported: 2021-04-14 14:22 UTC by Jan Keith Darunday
Modified: 2023-12-11 16:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments
Screenshot showing normal-sized non-pixelated cursor on screenshots (1.03 MB, image/jpeg)
2021-04-15 02:29 UTC, Jan Keith Darunday
Details
Camera picture of how it actually displays on my screen (1.54 MB, image/jpeg)
2021-04-15 02:46 UTC, Jan Keith Darunday
Details

Note You need to log in before you can comment on or make changes to this bug.
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.