No description
Find a file
Ian Douglas Scott 4748916ff9 Make RenderElement implementations generic to reduce duplication
It would make sense to have a bound like
`for<'frame> R::Frame<'frame>: AsGlowFrame<'frame>`. But that appears to
not behave properly due to current limitations of the borrow checker:
https://blog.rust-lang.org/2022/10/28/gats-stabilization.html#implied-static-requirement-from-higher-ranked-trait-bounds

Instead, this makes `glow_frame` and `glow_frame_mut` associated
functions of the `AsGlowRenderer` trait. Then it is pretty
straightforward to make the `RenderElement` implementations generic
using that and `FromGlesError`.

It would make sense to make `Self::Error: FromGlessError` a requirement
of the `AsGlowRenderer` trait, but due to the lack of implied bounds
support, that produces a bunch of errors about missing bounds. If Rustc
improves that eventually, some bounds could be cleaned up a bit:
https://github.com/rust-lang/rust/issues/44491
2024-08-05 12:58:52 +02:00
.github/workflows ci: Disable failing nix build job for now 2024-07-29 14:49:44 +02:00
cosmic-comp-config chore(config): enable tap-to-click and disable-while-typing by default for touchpads 2024-07-31 09:53:42 +02:00
data fix(config): PlayPause is not a valid xkb keysym 2024-08-03 11:16:40 +02:00
debian feat: runtime configurable keybindings 2024-07-01 15:20:23 +02:00
resources Update Turkish translation 2024-07-31 14:43:02 +02:00
src Make RenderElement implementations generic to reduce duplication 2024-08-05 12:58:52 +02:00
.gitignore Rework source filtering. 2023-01-04 01:52:16 -08:00
build.rs deps: Update to wayland-rs.0.30 2022-07-04 16:01:06 +02:00
Cargo.lock chore(config): add PlayPause/Prev/Next shortcuts 2024-08-03 03:37:51 +02:00
Cargo.toml chore: update smithay 2024-08-02 15:54:05 +02:00
flake.lock nix: setup dev shell 2023-11-12 17:30:41 +04:00
flake.nix nix: setup dev shell 2023-11-12 17:30:41 +04:00
i18n.toml i18n support 2023-07-06 00:04:34 +02:00
LICENSE Initial commit 2021-12-15 17:25:15 +01:00
Makefile support CARGO_TARGET_DIR 2024-07-15 12:27:46 +02:00
rust-toolchain.toml chore: Update libcosmic 2024-08-02 20:54:15 +02:00
rustfmt.toml Fix refresh_focus 2023-04-01 20:35:58 +04:00