Bug 482586 - Cursor size is inconsistent when switching between Wayland and X11
Summary: Cursor size is inconsistent when switching between Wayland and X11
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_cursortheme (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-06 20:58 UTC by daf
Modified: 2024-03-09 11:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daf 2024-03-06 20:58:28 UTC
SUMMARY

On Wayland cursor size are 2x the size then they are on X11 for any given picked size. 

STEPS TO REPRODUCE
1. Select a big cursor size in X11
2. Change to a Wayland session


OBSERVED RESULT

Cursor now looks 2x bigger then it did on X11

EXPECTED RESULT

Cursor size should be consistent across Wayland and X11

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS ELITE
System Version: -CF

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-03-07 17:22:19 UTC
Right, the X11 cursor size was always wrong. It's correct on Wayland. :)
Comment 2 daf 2024-03-07 23:20:55 UTC
Panel sizing was made the same on Wayland and X11, should cursor size in the settings also be adjusted so it's seamless transition?
Comment 3 Nate Graham 2024-03-08 21:22:18 UTC
It's not really that easy... On X11 the unscaled cursors are an X server bug that we can't really fix in KWin. The most we could do is replicate that bug on Wayland, but hauling forward old bugs forever in the name of consistency isn't really amazing either.
Comment 4 daf 2024-03-09 11:14:48 UTC
(In reply to Nate Graham from comment #3)
> It's not really that easy... On X11 the unscaled cursors are an X server bug
> that we can't really fix in KWin. The most we could do is replicate that bug
> on Wayland, but hauling forward old bugs forever in the name of consistency
> isn't really amazing either.

Maybe I'm over simplifying the problem but wouldn't it be easier to simply use the Wayland value in the settings and adjust the actual configured cursor size on X11? 

Example: set size 48
Wayland gets set to size 48
X11 gets set closest size of 48 * scaling factor

So Wayland works ass intended and only X11 gets a workaround.

Cursor changes don't apply instantly, so when changing session I need to fix the cursor size and then restart to ensure the cursor size is applied to everything which makes swapping sessions more annoying then a dual boot situation with different settings.

Panel size used to also have the exact same problem and now in plasma 6 it doesn't, so the cursor sticks out as the only thing that isn't consistent.