x11: move x11 specific code to x11 from linux/mod.rs

This commit is contained in:
Kirill Chibisov
2025-03-08 10:14:08 +03:00
committed by GitHub
parent b3dcfa1275
commit 5cada36ae8
3 changed files with 71 additions and 73 deletions

View File

@@ -79,7 +79,7 @@ pub type XWindow = u32;
#[inline]
pub fn register_xlib_error_hook(hook: XlibErrorHook) {
// Append new hook.
crate::platform_impl::XLIB_ERROR_HOOKS.lock().unwrap().push(hook);
crate::platform_impl::x11::XLIB_ERROR_HOOKS.lock().unwrap().push(hook);
}
/// Additional methods on [`ActiveEventLoop`] that are specific to X11.