Winit: Wayland: Blurry cursor when using HiDPI scaling

Created on 23 Nov 2018  路  6Comments  路  Source: rust-windowing/winit

Perhaps this should be added to the "Wayland metabug" report?

Anyway, I use HiDPI scaling on Linux+Wayland+Sway, and alacritty's cursor it blurry. It has the correct size though, and the rest of the window (i.e. text rendering) is sharp enough.

It doesn't happen, when I turn scaling off.

I know QT apps had the same bug until version 5.12, so I'm quite certain it's a bug in winit.

The fix in QT can be found here: https://codereview.qt-project.org/#/c/225465/

Wayland waiting bug

All 6 comments

This is actually an issue with SCTK, but it'll likely require some work in winit too.

blocked on https://github.com/Smithay/client-toolkit/issues/47

Is this still a issue?

Is this still a issue?

I can reproduce this on sway 1.4, alacritty 0.4.1

@goddessfreya this is an issue and I'm working on it right now. During more extensive testing with winit I've found out a very strange bug with HiDPI cursors. So I'm investigating right now.

So it'll likely be blocked until https://github.com/Smithay/client-toolkit/pull/97 will be answered and new 0.6.x release will arrive.

Smithay/client-toolkit@d61c551

Note that this commit is only on SCTK 0.7.0, which significantly changed the API of the lib. Winit will need some work to be updated to this new version. I'll probably do it at some point when I get the time to unless someones attacks it before me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mistodon picture mistodon  路  4Comments

coderhwz picture coderhwz  路  3Comments

francesca64 picture francesca64  路  5Comments

dhardy picture dhardy  路  3Comments

chemicstry picture chemicstry  路  3Comments