Bug 439439 - Huge mouse pointer on Wayland
Summary: Huge mouse pointer on Wayland
Status: RESOLVED DUPLICATE of bug 382604
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.22.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-07-03 12:05 UTC by postix
Modified: 2023-12-11 16:58 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
postix: Wayland+


Attachments
Screenshot (9.38 KB, image/png)
2021-07-03 12:05 UTC, postix
Details

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