X11: Check if XRRGetOutputInfo returned NULL (#709)
* X11: Check if XRRGetOutputInfo returned NULL Fixes #693 * Change X11 error logging to actually use log
This commit is contained in:
parent
3ba808e3c6
commit
3c59283b3f
4 changed files with 23 additions and 11 deletions
|
|
@ -382,7 +382,7 @@ unsafe extern "C" fn x_error_callback(
|
|||
minor_code: (*event).minor_code,
|
||||
};
|
||||
|
||||
eprintln!("[winit X11 error] {:#?}", error);
|
||||
error!("X11 error: {:#?}", error);
|
||||
|
||||
*xconn.latest_error.lock() = Some(error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue