-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Sway pointer is blurry compared to other clients when using fractional scaling. #4927
Comments
There's some logic to load icons with a size of |
I couldn't find this logic tbh in both sway/wlroots, maybe it's just not yet implemented? Edit: I'm talking about the logic presented in your snippet, the cursor scale seems like it's using the |
In a very similar vein, I've found that with fractional scaling my mouse pointer becomes perhaps twice the size when I hover over swaybg and is normal when it is over any other window. |
I've completely forgot about this issue, but as you can see you're not doing
So the current logic is to just multiply from what I can see, but the correct could be to |
The scaling factor was being implicitly cast to an int. Closes: swaywm/sway#4927
Can you try swaywm/wlroots#2107? |
The scaling factor was being implicitly cast to an int. Closes: swaywm/sway#4927
It seems to solve blurriness, but cursor size is still incorrect. |
It's still off by a bit, yeah. I think this is because not all cursor sizes are available and we always apply the output scaling factor to the cursor. We should compute a cursor scale factor depending on the requested cursor size, the effective cursor size, and the output scale. However the |
The problem is that you're using I guess the issue should be reopened with changed title, since there are still minor issues. |
I've just restarted with sway-git, swaybg-git and wlroots-git and the issue I was having with a huge cursor seems to be fixed! |
With fractional scaling, cleints will submit 2x buffers, Sway will scale them down. As explained above, if we pick a 2x cursor, we won't be able to scale it down to the right size with the current API.
Feel free to open issues for these two bugs. I'd prefer to track them in separate issues. |
Sway's pointer is blurry when using fractional scaling in comparison to other clients(e.g.
output * scale 1.5
). By sway pointer I mean the pointer for window resize/swaybg/window drag (swaynag is fine!).blurry version over swaybg
crisp version over swaynag
It's really hard to capture on a screenshot, but a blurry cursor is a bit larger, so I guess scaling wasn't applied to it?
sway version:
sway version 1.2-9d827ef4 (Jan 18 2020, branch 'HEAD')
The text was updated successfully, but these errors were encountered: