Function winit::platform::unix::register_xlib_error_hook
source · pub fn register_xlib_error_hook(hook: XlibErrorHook)Expand description
Hook to winit’s xlib error handling callback.
This method is provided as a safe way to handle the errors comming from X11 when using xlib
in external crates, like glutin for GLX access. Trying to handle errors by speculating with
XSetErrorHandler is unsafe.