fornjot icon indicating copy to clipboard operation
fornjot copied to clipboard

egui UI is blurry, mouse input is offset

Open hannobraun opened this issue 2 years ago • 2 comments

As the title says, the egui UI on the left is very blurry. The mouse cursor isn't registered where it actually is. See this screenshot: Screenshot from 2022-08-30 10-25-18

The blurriness is a bit subtle on this screenshot (although it's very clear in the original, especially if you've seen the difference). But you can clearly see that the mouse cursor is hovering over "Render original UI", but "Show egui settings UI" is activated.

I'm observing the problem on my Linux/Gnome setup (AMD GPU, although not sure that makes a difference). I'm pretty sure this came in with the recent egui/wgpu/winit upgrade (https://github.com/hannobraun/Fornjot/pull/975). The problem seems to be related to the scale factor of my HiDPI display. If I change the scale factor to 100% in the gnome settings, it works as expected.

I suspect that something has changed in regards to HiDPI handling in either winit or egui. Maybe the solution will become obvious when going over the changelogs.

hannobraun avatar Aug 30 '22 08:08 hannobraun

Just as extra information, I am getting the same result on my Mac.

Edit: Also, the status update element is no longer draggable.

devanlooches avatar Sep 29 '22 14:09 devanlooches

Thanks for the info, @devanlooches! I think this increases the likelihood of this being a HiDPI display issue. Good to know it's not some platform-specific problem. That would be annoying.

hannobraun avatar Sep 30 '22 05:09 hannobraun

I've looked into this, but no luck. I couldn't find anything that looked suspicious or was obviously missing.

hannobraun avatar Oct 12 '22 12:10 hannobraun

I just discovered that this happens to me with X.org, but not with Wayland.

hannobraun avatar Oct 20 '22 08:10 hannobraun

Fixed in #1266.

Thanks again, @erenoku!

hannobraun avatar Oct 25 '22 07:10 hannobraun