Closed kchibisov closed 1 year ago
As discussed on #smithay
, I think this supersedes the #21.
Ah, there's a bug in sctk
build script, so that's why CI fails, will update my branch.
The SCTK patches were merged, so nothing will be changed from my side.
In general, this looks good to me, not sure how to handle lack of SCTK release tho.
I'll ping you once it'll be released, because it should be soon™.
@PolyMeilex now it should be good to go.
I've also updated the Cargo.toml
to make memmap2
optional, since it's used only by ab_glyph
backend.
This should update the sctk-adwaita to the latest smithay-client-toolkit and wayland-rs.
--
While I was at it, I've decided to cleanup the implementation given that the math was messy, I'm not saying that it's much better, but at least it's more readable, be aware that I was touching only the parts related to wayland-rs udpate.
The diff might scare you, but it's mostly due to example change, the diff stat for
src
is the following:Which removed all the inner mutability, mostly all code duplication, and so on.
I'm not entirely sure what to add to the
CHANGELOG
though... I know that I've fixed constructor the for theFrameConfig
(made it public), not sure if it really matters...