-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define
Display
as c_void
instead of *mut c_void
to match Xlib
Xlib defines `Display` as follows: typedef struct _XDisplay Display; And then always references this type as a pointer to it, e.g. `Display *`. The same happens in `ash`, where `Display` is only ever referenced as a raw pointer via `*mut Display`, so making `Display` itself a type alias to `*mut c_void` is wrong and confusing. Switch it back to a `c_void` to match the forward-declared (but otherwise undefined) `struct _XDisplay`.
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 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
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