WIP Dispatch API changes in new wayland-rs#525
Draft
ids1024 wants to merge 8 commits into
Draft
Conversation
Presumably the type argument for the `LoopHandle` is expected to match the the `D` type used for wayland-rs dispatch? Unless the calloop event loop isn't being used to dispatch Wayland events. Without `keyboard:` specified in `delegate_keyboard!`, this did use `KeyboardData<$ty>`, so in that case these are assumed to match.
WIP surface udata fix macro macro WIP pointer macro WIP DataSourceData macro did earlier version not actually provide any way to implement dispatch for custom type here? constructor and accessors pub constructors touch WIP activation not compiling types in example? should be fine to get rid of trait and just rely on immutable wrapper struct. WIP don't make `delegate_activation!` generic Not compiling... can that work? see how that works with new wayland-rs. input method should fix custom data types previously was seemingly broken for delegating dispatch, constructing with custom data, or commit() aaccessing `.data` input-method-v3
example WIP WIP WIP WIP examples keyboard examples compositor pointer examples examples activation layer subcompositor dmabuf macro session lock relative pointer / constraints data device primary selection foreign toplevel list input method wgpu example
There's ones are not used in examples, but `keyboard_filter` has a test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #519, updating to test Smithay/wayland-rs#902.
It should be good for compile errors, etc. that the functions depend on
*Handlertraits instead ofDispatchimpls.