Bug 477902

Summary: Breeze themed cursor changes to a generic one when hovering over Qt5 apps, and also some other apps.
Product: [Plasma] plasma-integration Reporter: Andrej Halveland <andrej.halv>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: 31113, bizyaev, bugseforuns, dmatteo002, dominicgluskin, fanzhuyifan, hedim74889, kde.fossil822, nate, putr4.s, uhhadd
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video demonstration.
Wezterm example

Description Andrej Halveland 2023-12-02 10:07:42 UTC
Created attachment 163752 [details]
Video demonstration.

When hovering over Qt5 apps (and also some other apps) the cursor theme is suddenly changed to a what I think is a fallback one.

STEPS TO REPRODUCE
1. Open Ark for example (Because it is a Qt5 app... Carla also does this because it is a Qt5 app, and Supersonic also does this, which is an app written in Go using the Fyne toolkit)
2. Hover your mouse cursor over Ark

OBSERVED RESULT
Mouse theme suddenly changes to a non-breeze one.

EXPECTED RESULT
The mouse theme shouldn't change.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.6.3-arch1-1
Graphics Platform: Wayland
Graphics Drivers: mesa 23.2.1-2
Processors: AMD Ryzen 9 4900HS
Memory:  24GB of RAM
Graphics Processor: Integrated: Vega 8
Manufacturer: ASUS (Zephyrus G15 GA502IV)

ADDITIONAL INFORMATION:
I have both breeze and breeze5 packages installed. I am not sure if I am just missing something or of it's a genuine bug.
I have also added a video attachment.

Also I don't know if this is a Carla issue or not, but Carla (which is a Qt5 app) is not being themed at all after upgrading to Plasma 6. It was being themed properly when I was using Plasma 5.27.9
Comment 1 31113 2023-12-02 19:41:47 UTC
Did you try this?

https://wiki.archlinux.org/title/Cursor_themes#XDG_specification
Comment 2 Prajna Sariputra 2023-12-03 06:11:29 UTC
I'm also experiencing this with git master Plasma 6 Wayland from kdesrc-build on top of Arch Linux, and for me the cursor size for Qt5 apps is also wrong.

In my case either the instructions in https://wiki.archlinux.org/title/Cursor_themes#XDG_specification or setting `XCURSOR_THEME=breeze_cursors` works around the problem, and setting `XCURSOR_SIZE` works around the cursor size problem.
Comment 3 Nate Graham 2023-12-05 19:59:37 UTC
Can confirm with Qt5 Okular.
Comment 4 Mintra 2023-12-26 18:41:48 UTC
Can confirm this bug. But the bug is not limited to only cursors. Seems like qt5 apps can't read any settings from ~/.config/kdeglobals. You can change the color or fonts and qt5 apps won't follow it. Tested with Haruna(flatpak) & qbittorrent(flatpak build against qt5).
Comment 5 Patrick Silva 2023-12-31 20:45:38 UTC
Installing plasma5-integration 5.91.0-3 package from kde-unstable repository solved the problem on my Arch Linux.

Operating System: Arch Linux 
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 6 Dominic 2024-01-09 22:53:53 UTC
Created attachment 164781 [details]
Wezterm example

I also get this bug, here's an example with Wezterm. I also get it with kitty
Comment 7 Nate Graham 2024-01-10 21:36:23 UTC
Yep, it appears that the issue here is not having the Qt5 plasma-integration bits installed. Disteos may package these differently; contact your distro if you have any questions.
Comment 8 Ilya Bizyaev 2024-01-19 14:57:49 UTC
For Google Chrome, Chromium-based browsers, and Electron apps this should be solved with https://chromium-review.googlesource.com/c/chromium/src/+/5196950 (to be released with Chrome 122 on Feb 20th IIUC).