blob: 1f38f3b01ea14ba1b94ad9ce3499f9ba87929c32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#[cfg(target_os = "linux")]
pub mod x11
{
use std::ffi::c_void;
pub type XlibErrorHook = Box<dyn Fn(*mut c_void, *mut c_void) -> bool + Send + Sync>;
pub fn register_xlib_error_hook(hook: XlibErrorHook)
{
winit::platform::x11::register_xlib_error_hook(hook);
}
}
|