Hyprland
Hyprland copied to clipboard
XCURSOR_SIZE for qt and xwayland cannot both be satisfied
I'm using xwayland with advised patches with hyprland 1.25x scaling, and GDK_SCALE=2. In order to make xwayland cursor display normally, I need XCURSOR_SIZE=48, but for Qt I need XCURSOR_SIZE=24. Obviously they can't both be satisfied.
you mean Qt native? What about gtk native?
you mean Qt native? What about gtk native?
Gtk native works with hyprctl setcursor. Qt cursors behave larger if environment variables not set, as mentioned in document.
so, what you want is to export a variable only for XWayland?
so, what you want is to export a variable only for XWayland?
It's acceptable, if can be achieved (already tried xsettingsd xrdb .x* config file but with no luck)
I can code it in.
This would entirely solve the issue of cursors being small while on XWayland windows!
I can code it in.
it seems that instead of setting the XCURSOR_SIZE, I should set xft.dpi, but I haven't managed to apply it(tried xsettingsd but failed)
Edit: This can be done with xrdb -merge . Xresources
so, what you want is to export a variable only for XWayland?
This is a workaround. The permanent solution would be waiting for wayland to export cursor size accordingly, and Qt to support it. But we would also very appreciate a workaround in the short term, though.
See https://lists.freedesktop.org/archives/wayland-devel/2018-October/039515.html
Edit: If there is a way to put environment variable for qt based applications only, it also worth a try?
Is anything needed for the workaround of defining variables for XWayland only to be implemented?
I've tried that but it does not work.