unsafe extern "C" fn x_error_callback(
    display: *mut Display,
    event: *mut XErrorEvent
) -> c_int