diff options
Diffstat (limited to 'src/platform/linux/mod.rs')
-rw-r--r-- | src/platform/linux/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs index 1e12a80..323a21a 100644 --- a/src/platform/linux/mod.rs +++ b/src/platform/linux/mod.rs @@ -10,9 +10,11 @@ use libc; use api::osmesa::{self, OsMesaContext}; #[cfg(feature = "window")] -pub use api::x11::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor}; +pub use self::api_dispatch::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor}; #[cfg(feature = "window")] -pub use api::x11::{WaitEventsIterator, PollEventsIterator}; +pub use self::api_dispatch::{WaitEventsIterator, PollEventsIterator}; +#[cfg(feature = "window")] +mod api_dispatch; #[cfg(not(feature = "window"))] pub type Window = (); // TODO: hack to make things work |