Bug 439439

Summary: Huge mouse pointer on Wayland
Product: [Plasma] kwin Reporter: postix <postix>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alex765, fanzhuyifan, gluonparticle, laguest, nate, postix, rapiteanu.catalin
Priority: NOR Keywords: wayland
Version: 5.22.4Flags: postix: Wayland+
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=301622
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description postix 2021-07-03 12:05:38 UTC
Created attachment 139819 [details]
Screenshot

SUMMARY

I thought I'd give Wayland finally a try, unfortunately the mouse pointer is HUGE for most applications, but may change back to normal when hovered e.g. over titlebars or some GTK apps like Firefox or some part of GIMP (like the main image view window, but not the toolbars). I remember such a bug, but I cannot find the report anymore in Bugzilla...

Changing the scaling from 200% to 100% did not help. Attaching or de-attaching a second monitor did not make any difference.
If I got to systemsettings -> cursor and change the size or the cursor theme, the HUGE cursor is not affected, but I can see that the style is applied when hovered over e.g. a titlebar.

Please see the screenshot. If you need any debug output, please tell me which. :-)


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210629
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.13-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: Radeon RX 580 Series
3830x2160, 200% scaling
Comment 1 postix 2021-07-03 12:27:02 UTC
Restart helps, like proposed in https://bugs.kde.org/show_bug.cgi?id=382604, but it shouldn't happen in the first place.
Comment 2 laguest@archeia.com 2021-08-04 12:27:05 UTC
I have two screens, one is 4k and the other is 1080p, scaling the smaller to match the resolution of the 4k one, I get a massive pointer on the smaller screen only.

I used to get massive window frame icons too, but I've just tested with the latest version (in testing) and they seem to be ok, for now.

I'll be posting this on bug #301622
Comment 3 Vlad Zahorodnii 2021-08-04 13:26:20 UTC
Do you have xdg-desktop-portal-gtk and gnome-settings-daemon installed? I had had issues with fonts and cursors until I installed those two packages (I'm on arch though, not sure what the corresponding packages are on openSUSE)
Comment 4 postix 2021-08-04 13:46:23 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Do you have xdg-desktop-portal-gtk and gnome-settings-daemon installed?

The packages have the same name on openSUSE and I have installed xdg-desktop-portal-gtk but not gnome-settings-daemon. 
Nevertheless, I have given it a try again but w/o gnome-settings-daemon installed:


1) Logout from X11 session
2) Login into Wayland session

Observings: 

* Despite Systemsettings still claiming 200% scaling, everything was scaled like 100%.
* Changing the scaling to 100% made it look like it was scaled to 50%.
* Changing it back to 200% scaling made all applications look correctly scaled but blurry, i.e. just scaled up. Restarting individual applications made them look fine and scaled correctly to 200% again.

The Breeze theme mouse pointer mouse pointer was set to 24 and did not change in size in the first place, no matter where the mouse was hovered.

However, when I have changed it to 48, it remained being 24 for most places, like the plasma panel, but hovered over parts of the Systemsettings (eg.  the titlebar or the cursor previews) or the Firefox tabs, it changed it size to 48 as set.

So I come to the conclusion that this is not related only to GTK apps.

---- 

I am now on

Operating System: openSUSE Tumbleweed 20210730
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.4-1-default (64-bit)
Comment 5 postix 2021-08-04 13:47:57 UTC
Setting the mouse pointer size back to 24 made it keep being 24 for all places.
Comment 6 Nate Graham 2021-08-04 22:24:06 UTC
The larger cursor size on Wayland with scaling is intentional; the fact that the cursor is not scaled up on X11 when you use a global scale factor is in fact a bug that you never noticed. It got fixed on Wayland, so while it may seem like a bug, it's the way things were always supposed to be!

The fact that it doesn't change everywhere immediately without restarting plasmashell is Bug 382604.

*** This bug has been marked as a duplicate of bug 382604 ***
Comment 7 laguest@archeia.com 2021-08-05 08:46:21 UTC
(In reply to Nate Graham from comment #6)
> The larger cursor size on Wayland with scaling is intentional; the fact that
> the cursor is not scaled up on X11 when you use a global scale factor is in
> fact a bug that you never noticed. It got fixed on Wayland, so while it may
> seem like a bug, it's the way things were always supposed to be!

On what planet does this make sense? You're trying to scale a smaller screen to be essentially the same resolution. Making the cursor massive is just bizarre!
Comment 8 postix 2021-08-05 10:52:01 UTC
(In reply to laguest@archeia.com from comment #7)
> (In reply to Nate Graham from comment #6)

> On what planet does this make sense? You're trying to scale a smaller screen
> to be essentially the same resolution. Making the cursor massive is just
> bizarre!

Well, it seems to be like for the taskbar, both don't scale correctly and you set a appropriate size to make them look fine. 

When the correct scaling however is applied, these sizes are then of course wrong and you have the choose a smaller size, which fits again.
Comment 9 postix 2021-08-05 10:58:51 UTC
For reference, the scaling issue described in comment 4 is this here: 433460
Comment 11 Sargun Singh 2024-07-08 09:25:50 UTC
This is actually an Accessibility feature offered by KDE. To fix this:

System Settings > Accessibility > Shake Cursor > Uncheck the box for "Shake cursor to find it"
You can set the magnification level as well;
Comment 12 laguest@archeia.com 2024-07-08 09:39:20 UTC
(In reply to Sargun Singh from comment #11)
> This is actually an Accessibility feature offered by KDE. To fix this:
> 
> System Settings > Accessibility > Shake Cursor > Uncheck the box for "Shake
> cursor to find it"
> You can set the magnification level as well;

Again, how is it an accessibility feature when you have 1 screen at 1080p and another at 4k, you scale the 1080p to the same resolution as 4k and the mouse pointer is massive on that screen only?