Bug 436303 - Qt and XWayland apps don't respect cursor settings on Wayland
Summary: Qt and XWayland apps don't respect cursor settings on Wayland
Status: RESOLVED DUPLICATE of bug 420859
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_cursortheme (show other bugs)
Version: 5.21.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-04-28 11:49 UTC by myles.jon.gordon
Modified: 2022-10-31 13:03 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This shows the issue I'm having - I hover the cursor around programs that do and don't respect cursor settings (1.36 MB, video/x-matroska)
2021-04-28 11:49 UTC, myles.jon.gordon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description myles.jon.gordon 2021-04-28 11:49:20 UTC
Created attachment 137977 [details]
This shows the issue I'm having - I hover the cursor around programs that do and don't respect cursor settings

SUMMARY
I have applied the pre-packaged Adwaita cursor theme on my settings, and most applications respect it perfectly fine, however some such as OBS Studio (compiled from source) and the System Settings don't respect this change and instead use the standard Breeze cursor.

STEPS TO REPRODUCE
1. Use a non-breeze cursor theme
2. Hover over the System Settings program or OBS Studio

OBSERVED RESULT
Cursor settings have not been respected by OBS Studio and System Settings (there may be other programs, however these are the main 2 on my system that I use and have observed it on)

EXPECTED RESULT
Adwaita (in my case) cursor theme over all programs

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.11.16-arch1-1 kernel
(available in About System)
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Comment 1 myles.jon.gordon 2021-04-28 12:02:20 UTC
I forgot to mention, this is on Wayland.
Comment 2 myles.jon.gordon 2021-04-28 12:39:06 UTC
Works now after a couple of restarts I think, might have been something else I did but not sure.
Comment 3 Alois Wohlschlager 2021-04-28 14:03:26 UTC
I can reproduce this, the cursor is Breeze over Qt and XWayland apps, and Adwaita over titlebars and Gtk apps.
Comment 4 Nate Graham 2021-04-28 19:44:59 UTC
If they're Flatpak apps, it's the same as Bug 418936.
Comment 5 myles.jon.gordon 2021-04-28 19:46:29 UTC
They are native applications, I do not use Flatpak/Snap/any other containerisation
Comment 6 Nate Graham 2021-04-28 19:47:01 UTC
OK, thanks.
Comment 7 Alois Wohlschlager 2021-04-29 07:43:41 UTC
Nate, this is the opposite bug. Gtk apps do respect the custom setting, while Qt and XWayland apps continue to use Breeze.
Comment 8 Nate Graham 2021-04-29 15:23:09 UTC
Oops. Sorry.
Comment 9 Nate Graham 2021-05-04 19:19:26 UTC
Can reproduce. GTK apps get the new cursor immediately, but Qt and XWayland apps (Including Plasma) do not, not even after restarting them.
Comment 10 David Edmundson 2021-05-04 21:57:53 UTC
Please include output of "env"
Comment 11 Alois Wohlschlager 2021-05-05 12:18:01 UTC
env output:

SHELL=/bin/bash
CAML_LD_LIBRARY_PATH=/home/alois/.local/share/opam/4.11.1/lib/stublibs:/home/alois/.local/share/opam/4.11.1/lib64/stublibs:/home/alois/.local/share/opam/4.11.1/lib64
WINDOWID=1
OCAML_TOPLEVEL_PATH=/home/alois/.local/share/opam/4.11.1/lib/toplevel
COLORTERM=truecolor
SDK_HOME=/usr/lib64/jvm/java
XDG_CONFIG_DIRS=/etc/xdg:/usr/etc/xdg
LESS=-M -I -R
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
JDK_HOME=/usr/lib64/jvm/java
GTK_IM_MODULE=fcitx
MACHTYPE=x86_64-suse-linux
G_BROKEN_FILENAMES=1
HOSTNAME=genesis
HISTSIZE=1000
LANGUAGE=de:en_US
FROM_HEADER=
MINICOM=-c on
TEXMFHOME=/home/alois/.local/share/texmf
JAVA_ROOT=/usr/lib64/jvm/java
JAVA_HOME=/usr/lib64/jvm/java
JRE_HOME=/usr/lib64/jvm/java
INPUT_METHOD=fcitx
CPU=x86_64
SHELL_SESSION_ID=e68ee2a7b324453782cf42a09f8a136e
JAVA_BINDIR=/usr/lib64/jvm/java/bin
XMODIFIERS=@im=fcitx
DESKTOP_SESSION=/usr/share/wayland-sessions/plasmafullwayland
XCURSOR_SIZE=24
GPG_TTY=/dev/pts/4
EDITOR=/usr/bin/nvim
XDG_SEAT=seat0
PWD=/home/alois
XDG_SESSION_DESKTOP=KDE
LOGNAME=alois
XDG_SESSION_TYPE=wayland
CCACHE_DIR=/home/alois/.cache/ccache
MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man:/home/alois/.local/share/opam/4.11.1/man
STACK_ROOT=/home/alois/.local/share/stack
XAUTHORITY=/run/user/1000/xauth_IvMsSG
LS_OPTIONS=-N --color=tty -T 0
OPAM_SWITCH_PREFIX=/home/alois/.local/share/opam/4.11.1
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XKB_DEFAULT_MODEL=microsoftpro
GTK2_RC_FILES=/home/alois/.config/gtk-2.0/gtkrc
XNLSPATH=/usr/share/X11/nls
HOME=/home/alois
LANG=de_DE.UTF-8
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.xz=00;31:*.avi=01;35:*.bmp=01;35:*.dl=01;35:*.fli=01;35:*.gif=01;35:*.gl=01;35:*.jpg=01;35:*.jpeg=01;35:*.mkv=01;35:*.mng=01;35:*.mov=01;35:*.mp4=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.svg=01;35:*.tga=01;35:*.tif=01;35:*.webm=01;35:*.webp=01;35:*.wmv=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.aiff=00;32:*.ape=00;32:*.au=00;32:*.flac=00;32:*.m4a=00;32:*.mid=00;32:*.mp3=00;32:*.mpc=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:*.wma=00;32:*.wv=00;32:
XDG_CURRENT_DESKTOP=KDE
CARGO_HOME=/home/alois/.local/share/cargo
KONSOLE_DBUS_SERVICE=:1.161
PYTHONSTARTUP=/etc/pythonstart
WAYLAND_DISPLAY=wayland-0
KONSOLE_DBUS_SESSION=/Sessions/1
PROFILEHOME=
OSTYPE=linux
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
LESS_ADVANCED_PREPROCESSOR=no
INVOCATION_ID=7e2ced5a982f4539b883ed48e50ad295
KONSOLE_VERSION=210400
MANAGERPID=13980
QT_QPA_PLATFORM=wayland
KDE_SESSION_UID=1000
XKB_DEFAULT_LAYOUT=de
GRADLE_USER_HOME=/home/alois/.local/share/gradle
LESSCLOSE=lessclose.sh %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HOST=genesis
RUSTUP_HOME=/home/alois/.local/share/rustup
XAUTHLOCALHOSTNAME=genesis
LESSOPEN=lessopen.sh %s
USER=alois
COLORFGBG=15;0
PLASMA_USE_QT_SCALING=1
KDE_SESSION_VERSION=5
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
MORE=-sl
NPM_CONFIG_USERCONFIG=/home/alois/.config/npm/npmrc
QT_WAYLAND_FORCE_DPI=96
PIPEWIRE_LATENCY=128/48000
CSHEDIT=emacs
DISPLAY=:1
RUSTC_WRAPPER=sccache
SHLVL=1
WINDOWMANAGER=/usr/bin/startplasma-x11
PAGER=less
QT_IM_MODULE=fcitx
CVS_RSH=ssh
XDG_VTNR=2
XDG_SESSION_ID=2
LD_LIBRARY_PATH=/usr/${LIB}/pipewire-0.3/jack
LC_CTYPE=de_DE.UTF-8
XDG_RUNTIME_DIR=/run/user/1000
DEBUGINFOD_URLS=https://debuginfod.opensuse.org/
XKB_DEFAULT_VARIANT=neo
QT_AUTO_SCREEN_SCALE_FACTOR=0
JOURNAL_STREAM=8:57377
XCURSOR_THEME=breeze_cursors
GTK3_MODULES=window-decorations-gtk-module:colorreload-gtk-module
XDG_DATA_DIRS=/home/alois/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
KDE_FULL_SESSION=true
GDK_BACKEND=wayland
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
PATH=/home/alois/kde/src/kdesrc-build:/home/alois/.local/share/opam/4.11.1/bin:/usr/lib64/ccache:/home/alois/kde/src/kdesrc-build:/usr/local/bin:/usr/bin:/bin:/home/alois/.local/bin:/home/alois/.local/share/cargo/bin:/home/alois/.local/share/go/bin:/home/alois/.local/share/npm/bin:/home/alois/.local/share/hacky-debug-tools/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
PROFILEREAD=true
OPAMNOENVNOTICE=true
KDE_APPLICATIONS_AS_SCOPE=1
MAIL=/var/spool/mail/alois
HOSTTYPE=x86_64
OPAMROOT=/home/alois/.local/share/opam
XKB_DEFAULT_OPTIONS=terminate:ctrl_alt_bksp
CCACHE_CONFIGPATH=/home/alois/.config/ccache.config
LESSKEY=/usr/etc/lesskey.bin
GOPATH=/home/alois/.local/share/go
KONSOLE_DBUS_WINDOW=/Windows/1
_=/usr/bin/env

There is a lot of mess here, please tell me if you want some specific variables changed.
Comment 12 Nate Graham 2021-05-14 15:48:22 UTC
Investigated a bit and found that it's the same as Bug 420859. Restarting the session fully applies the changes. Feels like it would be a Qt bug.

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