Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

XCURSOR_SIZE for qt and xwayland cannot both be satisfied

Open Aleksanaa opened this issue 3 years ago • 10 comments

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.

Aleksanaa avatar Oct 22 '22 15:10 Aleksanaa

you mean Qt native? What about gtk native?

vaxerski avatar Oct 22 '22 15:10 vaxerski

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.

Qt cursor set to 24 xwayland cursor set to 32

Aleksanaa avatar Oct 22 '22 16:10 Aleksanaa

so, what you want is to export a variable only for XWayland?

vaxerski avatar Oct 22 '22 16:10 vaxerski

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)

Aleksanaa avatar Oct 22 '22 16:10 Aleksanaa

I can code it in.

vaxerski avatar Oct 22 '22 16:10 vaxerski

This would entirely solve the issue of cursors being small while on XWayland windows!

TheSunCat avatar Oct 25 '22 12:10 TheSunCat

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

Aleksanaa avatar Oct 26 '22 07:10 Aleksanaa

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?

Aleksanaa avatar Oct 26 '22 08:10 Aleksanaa

Is anything needed for the workaround of defining variables for XWayland only to be implemented?

TheSunCat avatar Dec 30 '22 10:12 TheSunCat

I've tried that but it does not work.

vaxerski avatar Dec 30 '22 11:12 vaxerski