-
-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor size with HiDPi #2448
Comments
Add this to your ~/.profile to set any cursor size you want.
It's applyed when the session starts. But you can also:
To make the changes inmediate. |
Thanks for reply , those variables are making some apps more bigger with fractional scaling as it was set in the config and but it is inaccurate by a character or two and when reducing its size using 'hyprctl setcursor Future-cursors 24' (BTW i use 36 cursor size when using '1' scaling that means the command is scaling down) it become more accurate (not completely) but smaller in desktop . I'm not sure weather it is KDE that wrote old configs for QT or gtk or anything similar to that makes kind of conflict but i tried to edit with nwg-look but with no luck. All I can say now under fractional scaling cursor and resolution are major issues even with hidpi patch from the AUR I'm not turning back to it. but the mouse accuracy under normal scaling '1' is weird even if you get back to the original cursor or any theme cursor all of them are affected.while the issue is not present under KDE. Here is the top of my config
|
So, getting wayland-native things to have correct cursor sizes works pretty well for me. I now run a little script with
I use This sets up my cursor theme and a basic size, which is automatically scaled for me on my hidpi display to look correct - without any additional settings - for wayland-native applications. Since xorg obviously doesn't do scaling, that's where
during the above script, because without it xwayland will reset the cursor to the default x cursor when leaving an xorg application's window. This works ok, except somehow for rofi, which seems to completely ignore the xcursor variables. I don't know why, emacs does fine and runs with the exact same environment. |
I think there's a conceptional issue with QT applications:
Now, when I set XCURSOR_SIZE to double the native size(48), then all xwayland applications use the correct size. But that also breaks wayland-native QT applications because they actually interpret the XCURSOR_SIZE environment variable - even when running under wayland. They now have a cursor double the expected size(probably 48). So right now there's no way to have the cursor be the correct size in all applications. Either xwayland is too small or wayland-QT is too big. I'm not sure if the fault lies within hyprland or within QT. Are we setting set_buffer_scale on the cursor correctly as indicated by the QTBUG? |
FWIW this seems to be related to fractional scaling. When I set the scale to either 1 or 2, then mouse cursor size is properly applied by GTK apps. |
I have a somewhat similar problem. When I set scaling to fractional scaling, the cursor when hovered on waybar or my terminal (alacritty) is bigger than on hyperland. |
I'm having a similar issue but it only happens when hovering over |
is this still a thing? |
Still a thing. With 1.5 fractional scaling I've noticed that my cursors are (slightly) larger in GTK-based apps than when hovering over the desktop or plain wayland clients like |
Have you tested latest master? It seems to have been solved for me with the recent hyprland re-implementation of cursor handling (which is not yet in any release). |
I am getting this issue, notably with minecraft or steam's header (between the buttons and the notifications) seems to ignore whatever theme or settings im using regardless of any envars and show the default cursor at size 98 while I have xcursor size to 24... |
Same issue here. Steam, winecfg show this behaviour. Not happening in KDE for example. I reported this earlier here: #5715 |
The Issue:
I came form Plasma KDE to Hyprland and I saw that cursor size with fractional scaling to
1.5
is too problematic , I did append the typical cursor adjustment with other environment variables form the wiki in my config:How reproduce
Just change the scale size
Details
Also i did set cursor size using
nwg-look
to 24 alsoand I still have issues with firefox ( native not flatpak ) and other apps where I see my cursor in the desktop pretty normal sized and when I hover the mouse around the waybar or when opening and moveing my cursor in it it get resized and become bigger. Furthermore, when I use
rofi
menu the mouse become tiny even if i try passing --dpi argument :(. In addition, using when using any screen recoreding software using Pipewire (Like OBS and wf-recoreder was tested also ) the mouse become dramatically oversized and here like that and affect every other program until I close it:https://github.com/hyprwm/Hyprland/assets/88736671/b68b00e6-97f8-4e03-9bee-9c1c6d1c1e38
It might be related to scaling because when I get selecting resolution I got 1280 X 720 while my screen is Full HD:
for now OBS and rofi problems are unsolvable while cursor size on the bar and other applications could be fixed with changing the cursor size using
nwg-look
to match desktop cursor size.Setup
If you need any further information or configuration to try just let me know
Edit : After some further investigations I have found that with Fractional scaling some apps and games also are recognizing my monitor as 1280 X 720 and not 1920 X 1080 , and I think it might be the problem for this weird mouse changing
The text was updated successfully, but these errors were encountered: