-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create XCBConnection from AsRawXcbConnection
The goal here is to allow for an XCBConnection to be created safely from an object that already implements AsRawXcbConnection. This way, instead of using "from_raw_xcb_connection" and needing to use unsafe code, we can instead have it wrap aound something that already implements AsRawXcbConnection safely. This adds a generic parameter to XCBConnection that is set to a ZST by default. If this new feature is used this parameter is replaced by the type that is being wrapped. Similar to how owned display handles work in the winit ecosystem. Signed-off-by: John Nunley <dev@notgull.net>
- Loading branch information
Showing
2 changed files
with
93 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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