#[cfg(x11_platform)] pub mod x11 { use std::ffi::c_void; pub type XlibErrorHook = Box bool + Send + Sync>; pub fn register_xlib_error_hook(hook: XlibErrorHook) { winit::platform::x11::register_xlib_error_hook(hook); } }