Created attachment 141819 [details] adwaita This is a follow up bug from https://bugs.kde.org/show_bug.cgi?id=442539 where a related bug was fixed by Vlad. Clicking on a menu item in firefox (92.0) or Thunderbird (91.1.1) makes the mouse cursor to change from the theme cursor selected by the user (in my case breeze) into the adwaita theme cursor. I would expect it to remain at the cursor I have selected in the settings - breeze. Executing xsetroot -cursor_name left_ptr resolves this issue. Clicking on a thunderbird/firefox menu item retains the breeze cursor as expected. Operating System: Arch Linux KDE Plasma Version: 5.22.90 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Kernel Version: 5.13.0-1-amd-staging-drm-next-git-00935-gb44d240c34d2 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: AMD Radeon RX 5700 XT
The issue is that the startup sequence looks as follows: * kwin starts * xwayland is launched * kwin sets the cursor for the root window * plasma starts * plasma updates various xsettings properties, include the cursor theme since kwin doesn't monitor xsettings, it continues using its cached xcb_cursor_t. there are two options: * monitor xsettings. it's not as trivial as it seems. kwin will need to read and parse xsettings properties * ignore xsettings and load cursors on our own (we have the infrastructure to do so already). this one should be easier to implement, but not sure if it's 5.23 material.
s/include the cursor theme/including the cursor theme/
As a (lame) work around, you could enable native wayland support in Thunderbird and Firefox. I've been using both with native wayland support for about a year and they work pretty decently.
Yeah, I have too. Still it probably affects other XWayland apps, right?
What about making plasmashell set the cursor for the x root window?
Can reproduce with these gtk2 Xwayland apps: asunder audio cd ripper gimp grip audio cd ripper hexchat isomaster leafpad text editor tixati torrent client Operating System: Arch Linux KDE Plasma Version: 5.23.4 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2 Graphics Platform: Wayland
(In reply to Patrick Silva from comment #6) > Can reproduce with these gtk2 Xwayland apps: > asunder audio cd ripper > gimp > grip audio cd ripper > hexchat > isomaster > leafpad text editor > tixati torrent client > > Operating System: Arch Linux > KDE Plasma Version: 5.23.4 > KDE Frameworks Version: 5.89.0 > Qt Version: 5.15.2 > Graphics Platform: Wayland Blender running on Xwayland is also affected.
*** Bug 448821 has been marked as a duplicate of this bug. ***
Affects games like Minecraft
*** Bug 454959 has been marked as a duplicate of this bug. ***
Still an issue. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.25.0 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.4 Graphics Platform: Wayland
This is an issue in X11 as well. My mouse theme changes depending on where it is on the screen. On the desktop it becomes Adwaita, on the application screen it is my selected theme, moving over to the task-bar it turns Adwaita again, hovering an application icon in the task-bar is my selected theme. Operating System: openSUSE Tumbleweed 20220613 KDE Plasma Version: 5.25.0 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.2 Kernel Version: 5.18.2-1-default (64-bit) Graphics Platform: X11
(In reply to tneo from comment #12) > This is an issue in X11 as well. My mouse theme changes depending on where > it is on the screen. On the desktop it becomes Adwaita, on the application > screen it is my selected theme, moving over to the task-bar it turns Adwaita > again, hovering an application icon in the task-bar is my selected theme. > You are facing a different bug. See bug 382604
Ah. Sorry I had not found that one.
The bug description should probably mention XWayland. I noticed that any XWayland use case simply ignores the cursor theme and uses default. A very simple test - run xev and notice how cursor changes when hovering over it.
I'm unable to reproduce on neon unstable. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.25.80 KDE Frameworks Version: 5.97.0 Qt Version: 5.15.5 Graphics Platform: Wayland
Nevermind. If a third-party cursor theme is used, cursor changes to Breeze when I hover over Xwayland apps.
I confirmed this issue: The mouse cursor turns into black "Adwaita theme" in any GTK app (for example: snapper-gui, pamac-manager) when using root permission in Wayland or XWayland. Try to run "kdesu snapper-gui" to show wrong cursor theme. It works fine without using root permission, but it does not work with root permission. This is for Wayland, but X11 has no issue.
(In reply to Zesko from comment #18) > I confirmed this issue: > > The mouse cursor turns into black "Adwaita theme" in any GTK app (for > example: snapper-gui, pamac-manager) when using root permission in Wayland > or XWayland. > > Try to run "kdesu snapper-gui" to show wrong cursor theme. > > It works fine without using root permission, but it does not work with root > permission. > > This is for Wayland, but X11 has no issue. I solved my issue: 1. Check what is the cursor-theme for GTK with root permission: $ sudo gsettings get org.gnome.desktop.interface cursor-theme" The output is "Adwaita" 2. See the list of cursor-themes: $ find /usr/share/icons -type d -name "cursors" You can select any cursor-theme from this list. 3. You can change "Adwaita" to your cursor-theme e.g: "Breeze_Snow" $ sudo dbus-launch gsettings set org.gnome.desktop.interface cursor-theme Breeze_Snow 4. Reboot, that works for me.
(In reply to Zesko from comment #19) > (In reply to Zesko from comment #18) > > I confirmed this issue: > > > > The mouse cursor turns into black "Adwaita theme" in any GTK app (for > > example: snapper-gui, pamac-manager) when using root permission in Wayland > > or XWayland. > > > > Try to run "kdesu snapper-gui" to show wrong cursor theme. > > > > It works fine without using root permission, but it does not work with root > > permission. > > > > This is for Wayland, but X11 has no issue. > > I solved my issue: > > 1. Check what is the cursor-theme for GTK with root permission: > $ sudo gsettings get org.gnome.desktop.interface cursor-theme" > The output is "Adwaita" > > 2. See the list of cursor-themes: > $ find /usr/share/icons -type d -name "cursors" > > You can select any cursor-theme from this list. > 3. You can change "Adwaita" to your cursor-theme e.g: "Breeze_Snow" > $ sudo dbus-launch gsettings set org.gnome.desktop.interface cursor-theme > Breeze_Snow > > 4. Reboot, that works for me. this works for me as well - thanks
(In reply to Zesko from comment #19) > (In reply to Zesko from comment #18) > > I confirmed this issue: > > > > The mouse cursor turns into black "Adwaita theme" in any GTK app (for > > example: snapper-gui, pamac-manager) when using root permission in Wayland > > or XWayland. > > > > Try to run "kdesu snapper-gui" to show wrong cursor theme. > > > > It works fine without using root permission, but it does not work with root > > permission. > > > > This is for Wayland, but X11 has no issue. > > I solved my issue: > > 1. Check what is the cursor-theme for GTK with root permission: > $ sudo gsettings get org.gnome.desktop.interface cursor-theme" > The output is "Adwaita" > > 2. See the list of cursor-themes: > $ find /usr/share/icons -type d -name "cursors" > > You can select any cursor-theme from this list. > 3. You can change "Adwaita" to your cursor-theme e.g: "Breeze_Snow" > $ sudo dbus-launch gsettings set org.gnome.desktop.interface cursor-theme > Breeze_Snow > > 4. Reboot, that works for me. Your instructions are a workaround, not a fix. Cursors KCM should set the cursor for all apps correctly.
And why would root's settings affect user session even in XWayland case? There is clearly some kind of misconfig / disconnect of expectations here.
(In reply to Vlad Zahorodnii from comment #1) > The issue is that the startup sequence looks as follows: > > * kwin starts > * xwayland is launched > * kwin sets the cursor for the root window > > * plasma starts > * plasma updates various xsettings properties, include the cursor theme > > since kwin doesn't monitor xsettings, it continues using its cached > xcb_cursor_t. > Until there is a fix, is there some config file that sets default global X11 cursor theme statically? That can help avoiding this.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3239
*** This bug has been marked as a duplicate of bug 459468 ***
Git commit dc4c463ca36b26ceb25efda7fa25a7c7a906002d by Vlad Zahorodnii, on behalf of Severin von Wnuck. Committed on 14/06/2023 at 13:37. Pushed by vladz into branch 'master'. xwayland: Remove cursor definition This is now handled by krdb. Related: bug 459468 M +0 -6 src/xwayland/xwayland.cpp https://invent.kde.org/plasma/kwin/-/commit/dc4c463ca36b26ceb25efda7fa25a7c7a906002d
Git commit fb238b25d126df6f1b7a48ddbdef10b7cc572f60 by Vlad Zahorodnii, on behalf of Severin von Wnuck. Committed on 14/06/2023 at 14:06. Pushed by vladz into branch 'Plasma/5.27'. xwayland: Remove cursor definition This is now handled by krdb. Related: bug 459468 (cherry picked from commit dc4c463ca36b26ceb25efda7fa25a7c7a906002d) M +0 -6 src/xwayland/xwayland.cpp https://invent.kde.org/plasma/kwin/-/commit/fb238b25d126df6f1b7a48ddbdef10b7cc572f60