-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add method for importing external proxies #731
Conversation
I've tested this against my browser and it seems to work, I just have to define my own
|
Obviously they're not, it's up to me to destroy the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs a changelog entry.
wayland-backend/src/sys/mod.rs
Outdated
/// There must never be more than one party managing an object. This is only | ||
/// safe to call when a third party is transferring ownership of the proxy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// There must never be more than one party managing an object. This is only | |
/// safe to call when a third party is transferring ownership of the proxy. | |
/// There must never be more than one party managing an object. This is only | |
/// safe to call when a third party gave you ownership of an uninitialized proxy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this should have a note regarding the fact that the interface is not checked, and while giving a wrong interface should not cause memory unsafety, it will definitely cause protocol errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly is an "uninitialized" proxy? Doesn't it have to be initialized to exist? I'm using this for a WlBuffer
that already has a buffer attached and everything, this suggestion makes it sound like I'm using my own API wrong…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm not sure what would be the best wording for that. What I mean is a proxy which has not yet been assigned a "listener" (using libwayland vocabulary).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unmanaged might be better than uninitialized?
It's vague enough to not have a precise meaning, so people think for themselves, but it gives a general idea as to what kind of things shouldn't have been performed on the proxy?
a8e5875
to
f8b3b35
Compare
CI failures are unrelated to my changes, seems like freedesktop issues. |
Yes, it seems like freedesktop's gitlab is currently in maintenance. |
Freedesktop should be back if you want to restart CI. |
See #730.