-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Type errors in unix::WindowExt for X11 #256
Copy link
Copy link
Closed
Labels
DS - x11Affects the X11 backend, or generally free Unix platformsAffects the X11 backend, or generally free Unix platforms
Description
The get_xlib_window returns a value that is defined by the X11 API to be Wffi::indow (which is a typedef to c_ulong), but casts it to *mut c_void.
Likewise, get_xlib_screen_id returns a value defined by the X11 API to be a c_int, but casts it to *mut c_void.
My understanding of the X11 API is very light, but this seems wrong to do so, especially given depending on the architecture, these types are not guaranteed to even be the same size.
Do you have some insight regarding this @Ralith ? (pinging you as you seem to have a fair amount of knowledge of X11)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DS - x11Affects the X11 backend, or generally free Unix platformsAffects the X11 backend, or generally free Unix platforms