Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
PointerTarget
/KeyboardTarget
object-safe; use in Anvil
I've been thinking about how to simplify this code for a while. Implementations of these traits become particularly verbose with a more complicated shell like cosmic-comp: https://github.com/pop-os/cosmic-comp/blob/master/src/shell/focus/target.rs. It turns out it can be made object-safe, so we can have a `&dyn PointerTarget`, if `PartialEq` and `Clone` requirements are moved out of the trait itself. I still wonder if it could be better to use enums for input events instead of a million methods. Anyway, something to think about.
- Loading branch information