-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix blurry cursor on Wayland at a scale other than 100% #17496
Fix blurry cursor on Wayland at a scale other than 100% #17496
Conversation
20ba299
to
887ab62
Compare
Thanks! |
this should fix, because when scaling factor is 100%, the display cursor is too big. |
…industries#17496)" This reverts commit c119387.
@senonide Don't know if you saw this: Likely caused by this: zed/crates/gpui/src/platform/linux/wayland/client.rs Lines 479 to 480 in 0d9af4d
|
This code in here is wrong, the cursor's scale must be determined by the scale of the current wl_surface. Here's some code where this is already being done. Basically:
The Maybe there should be a cursor theme cache like SCTK does, and the current window's scale should passed when calling |
…)" This reverts commit c119387.
…es#17496) Closes zed-industries#13258 Release Notes: - Fixed blurry mouse cursor on wayland when the screen scale is other than 100% Before: ![Screenshot from 2024-09-06 14-38-30](https://github.com/user-attachments/assets/e4553503-ecea-4b53-b80d-43732d34fa62) After: ![Screenshot from 2024-09-06 14-38-56](https://github.com/user-attachments/assets/ce563d3a-2b44-44b9-9f59-f0042609924e)
…-industries#18642) Closes zed-industries#17771 Reverts zed-industries#17496 This PR turns out to need more work than I thought when I merged it. Release Notes: - Linux: Fix a bug where the cursor would be the wrong size on Wayland
Closes #13258
Release Notes:
Before:
After: