Remove xlib_xconnection from public interface

This commit is contained in:
John Nunley
2023-01-10 08:46:48 +00:00
committed by GitHub
parent 4b22ca8daf
commit 490abcad14
16 changed files with 56 additions and 104 deletions

View File

@@ -116,7 +116,7 @@ impl Default for PlatformSpecificWindowBuilderAttributes {
}
#[cfg(x11_platform)]
pub static X11_BACKEND: Lazy<Mutex<Result<Arc<XConnection>, XNotSupported>>> =
pub(crate) static X11_BACKEND: Lazy<Mutex<Result<Arc<XConnection>, XNotSupported>>> =
Lazy::new(|| Mutex::new(XConnection::new(Some(x_error_callback)).map(Arc::new)));
#[derive(Debug, Clone)]
@@ -142,7 +142,7 @@ impl fmt::Display for OsError {
}
}
pub enum Window {
pub(crate) enum Window {
#[cfg(x11_platform)]
X(x11::Window),
#[cfg(wayland_platform)]