-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegistryState
/GlobalList
redundancy
#324
Comments
I'm not sure there's a way to avoid some kind of redundancy here as long as But it would be good to improve this if anyone has ideas. |
I don't see a way we can remove this redundancy without expanding wayland-client's helpers into this scope or tell users of sctk to manually instantiate globals like wl_output |
I guess this abstraction is useful in wayland-rs for things that are using wayland-rs without sctk? Assuming it's thus necessary to have in client-toolkit, there might be a couple options:
|
Can someone tell me, is there a way to get globals using a raw display handle (backend is not owned) and without starting a full event loop (I'm thinking it's going to catch unrelated events too)? Is there a way to get globals without using get_registry, as it's not recommended to request multiple times? Should I use wayland-client or sctk? |
From what I understand, right now global handling is done in multiple steps:
waylad_client
:GlobalList
intercepts events and fills it's internalMutex<Vec<Global>>
. After the initial roundtrip it starts propagating new events.client-toolkit
:RegistryState
clones the list of globals fromGlobalList
and keeps it in sync.It seems that having two copies of
Vec<Global>
is redundant.The text was updated successfully, but these errors were encountered: