-
Notifications
You must be signed in to change notification settings - Fork 175
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
Implement xdg-foreign protocol #342
Conversation
3d8277b
to
958219e
Compare
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.
Thanks for this PR, the general structure looks good, I just have a few remarks. This will need to be rebased on master as well.
@vberger I think I've resolved your requests here. |
Hmm, so, seen how you changed your PR, it looks like you missed the fact that there are two different roles Taking that into account, I don't think it's necessarily a good idea to move one of them in |
Hmm I probably need to make sure I did fully implement the wl_shell_surface parent logic |
e2be507
to
287aee1
Compare
2dcc6fa
to
26e3746
Compare
This is very much incomplete, but it implements the import and export of surfaces. However functions related to setting and imported surface the parent of another surface is not done. importer destructor destroys all imports made from the same client Implement SetParentOf, no undoing yet Add inner import type Destroy child surface relationships when importing A note move init function upwards use 0.29.0 crate Move role string constants into the public Use toplevel_like for surface checks in foreign add methods to get the parent surface Make sure ZXDG roles are public api Consistent ordering of parameters on xdg_foreign impl methods Let's update the changelog Document how to use xdg_foreign wl_shell_surface is likely invalid, so it cannot be imported or exported Changelog suggestions remove redundant inner ref cell Remove all uses of the refcell like behavior Allow compositor to export surfaces on server Appease new clippy lints then Use string references and iterate in reverse to simplify removals heed request for order
Implementation of the xdg-foreign protocol. This allows a client to export a surface and then allow another import the surface using a handle.
So what's needed otherwise: