extern "C" fn error_handler(_display: *mut xlib::Display, _ev: *mut xlib::XErrorEvent) -> i32 {
    // TODO: Get real error message
    unsafe {
        error!("X11 Error (request code): {}", (*_ev).request_code);
    }

    0
}
/**
 * The catch-all error reporter
 */
The catch-all error reporter
The catch - all error reporter
extern "C" fn error_handler(_display: *mut xlib::Display, _ev: *mut xlib::XErrorEvent) -> i32 {
    // TODO: Get real error message
    unsafe {
        error!("X11 Error (request code): {}", (*_ev).request_code);
    }
    0
}
extern " " fn error_handler ( _display : * mut xlib :: Display , _ev : * mut xlib :: XErrorEvent ) -> i32 { // TODO: Get real error message unsafe { error ! ( " " ( ev ) request_code ) ; } 0 }
The catch-all error reporter
The catch - all error reporter
_display
*mut xlib::Display
_ev
*mut xlib::XErrorEvent
_display
*mut xlib::Display
_ev
*mut xlib::XErrorEvent