Bug 474430

Summary: Tiny cursor on Firefox when using scaling on Wayland
Product: [Plasma] kwin Reporter: guimarcalsilva
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ad.liu.jin, dennis, d_debnath, ggendron, jchevarley, meven29, nate
Priority: NOR Keywords: qt6
Version: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=477955
Latest Commit: Version Fixed In:
Attachments: Tiny cursor

Description guimarcalsilva 2023-09-11 23:36:40 UTC
Created attachment 161567 [details]
Tiny cursor

SUMMARY

STEPS TO REPRODUCE
1. Use scaling (I used 125% at 1080p) and re-login
2. Open Firefox

OBSERVED RESULT
The cursor is very tiny. Check the screenshot.

EXPECTED RESULT
Normal cursor with scaling, like 5.27

SOFTWARE/OS VERSIONS
SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-32-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Comment 1 guimarcalsilva 2023-09-11 23:39:57 UTC
Setting as Confirmed since Nate could reproduce it in https://bugs.kde.org/show_bug.cgi?id=474382
Comment 2 Nate Graham 2023-09-12 14:29:13 UTC
Yep, can reproduce. Firefox is in Native Wayland mode. The problem is also seen in other native Wayland non-Libadwaita apps GTK apps, such as Gedit.

In Native Wayland Libadwaita apps, I see something different: the cursor it still not the right size, but it's a *different* wrong size, and the cursor theme is also wrong.
Comment 3 Méven Car 2023-09-14 09:09:51 UTC
I am experiencing this with qtcreator XWayland, cursor theme is off as well.

I don't reproduce it in Firefox (ubuntu snap) in Wayland native.
Comment 4 Méven Car 2023-09-14 09:45:25 UTC
(In reply to Méven Car from comment #3)
> I am experiencing this with qtcreator XWayland, cursor theme is off as well.
> 
> I don't reproduce it in Firefox (ubuntu snap) in Wayland native.

Correction, I do have the bug with firefox as well.
Comment 5 David Edmundson 2023-10-02 13:12:16 UTC
*** Bug 474603 has been marked as a duplicate of this bug. ***
Comment 6 Joe 2023-11-02 03:24:29 UTC
So, my previous bug was closed and marked duplicate of this - which seems correctly. Just wanted to bring up the other half of my report which is the video can 'jump' a bit when moving the mouse (and it becomes the right size again). I have noticed the same frame jumping/slight ghosting also in two Proton steam games (Rome 2 Total War & Attila Total War) where the cursor is fine, but I get the jumping/frame ghosting. Switching them from full screen to windowed and the ghosting stops. 

At this point not sure if they are related - or if I should create a separate bug for this side of my original report.
Comment 7 Joe 2023-11-08 03:58:59 UTC
Just an update on the games and flickering: running in gamescope and they are fine, so, i do think it is a kwin issue.
Comment 8 Dennis 2023-11-25 01:25:54 UTC
I have the issue as well, I'm on:

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.81.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-37-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: XPS 13 9380
Comment 9 Jin Liu 2023-12-03 02:44:43 UTC
The cursor in the screenshot is not only tiny, it looks like Adwaita to me. Probably your Firefox is picking cursor settings from the desktop portal (widget.use-xdg-desktop-portal.settings=1 in about:config, or GTK_USE_PORTAL=1), and you don't have xdg-portal-desktop-gtk installed?

That said, GTK3 just merged this:
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5481
which might improve the situation with similar problems, by using the 2x cursor from Breeze when 3x is absent, instead of falling back straight to 1x. I guess then GTK3 apps under wayland would behave like Electron apps, i.e. at 2.5x zoom, they will use a 2x cursor which is smaller than in KDE apps but still usable.
Comment 10 fanzhuyifan 2023-12-08 18:02:02 UTC
*** Bug 478277 has been marked as a duplicate of this bug. ***
Comment 11 Vlad Zahorodnii 2023-12-14 12:35:19 UTC

*** This bug has been marked as a duplicate of bug 459161 ***