zed icon indicating copy to clipboard operation
zed copied to clipboard

Blurry mouse pointer on Wayland

Open filipwiech opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

I have the following setup:

  • Ubuntu 24.04 GNOME Wayland
  • Main laptop screen, 100% scaling
  • External 4K monitor, set to 200% scaling

When I move Zed onto the 4K screen, the window is scaled nicely (correct size and crisp graphics), however whenever I move the mouse pointer over the editor it becomes blurry. It has the correct size, but it's as if the icon used for the rendering came from a lower resolution asset. If I move the pointer outside of the Zed window (for example over the desktop or some other application) then it becomes sharp. Sorry for no images, but unfortunately it doesn't show on screenshots.

Environment

Zed: v0.141.0 (Zed Nightly d4891a62bb3bd45db713fa576a13f8a5d95ca382) OS: Linux Wayland ubuntu 24.04 Memory: 31 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log

filipwiech avatar Jun 19 '24 11:06 filipwiech

Can you try the commands shown in https://github.com/zed-industries/zed/issues/14862 to see if that helps?

notpeter avatar Jul 26 '24 14:07 notpeter

Same problem with this setup:

  • Fedora 40 Gnome Wayland
  • Laptop screen 2880x1920p, 200% scaling
  • Zed v0.148.1

Only when I move the mouse pointer over the editor, it becomes blurry. It seems that the problem comes from scaling at 200% because this does not happen when the screen is at a scaling factor of 100%.

Can you try the commands shown in #14862 to see if that helps?

I tried it but it doesn't fix the problem. I am already using the default cursor in Fedora (Adwaita)

senonide avatar Aug 17 '24 08:08 senonide

I believe the issue here is that when we set the cursor surface for the pointer we don't actually specify the buffer scale for said wl_surface. Here's SCTK code for reference: https://github.com/Smithay/client-toolkit/blob/c583de8dd5651f8168c6513cd282137c42aae049/src/seat/pointer/mod.rs#L458-L495

apricotbucket28 avatar Aug 20 '24 00:08 apricotbucket28

I've just encountered this issue, mouse pointer was definitely fine a week ago. Is this an ongoing issue?

Raiden0456 avatar Oct 20 '24 19:10 Raiden0456

Closed via:

  • https://github.com/zed-industries/zed/pull/21373

JosephTLyons avatar Dec 01 '24 05:12 JosephTLyons