mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Fix type hint reference for xlib hook
This commit is contained in:
@@ -35,9 +35,11 @@ pub use crate::platform_impl::{x11::util::WindowType as XWindowType, XNotSupport
|
|||||||
#[cfg(feature = "wayland")]
|
#[cfg(feature = "wayland")]
|
||||||
pub use crate::window::Theme;
|
pub use crate::window::Theme;
|
||||||
|
|
||||||
/// The first argument in the provided hook will be the pointer to XDisplay
|
/// The first argument in the provided hook will be the pointer to `XDisplay`
|
||||||
/// and the second one the pointer to XError. The return `bool` is an indicator
|
/// and the second one the pointer to [`XErrorEvent`]. The returned `bool` is an
|
||||||
/// whether error was handled by the callback.
|
/// indicator whether the error was handled by the callback.
|
||||||
|
///
|
||||||
|
/// [`XErrorEvent`]: https://linux.die.net/man/3/xerrorevent
|
||||||
#[cfg(feature = "x11")]
|
#[cfg(feature = "x11")]
|
||||||
pub type XlibErrorHook =
|
pub type XlibErrorHook =
|
||||||
Box<dyn Fn(*mut std::ffi::c_void, *mut std::ffi::c_void) -> bool + Send + Sync>;
|
Box<dyn Fn(*mut std::ffi::c_void, *mut std::ffi::c_void) -> bool + Send + Sync>;
|
||||||
|
|||||||
Reference in New Issue
Block a user