Make platform::linux generic over X11 and Wayland.

This commit is contained in:
Victor Berger 2015-05-12 22:47:34 +02:00
parent 3279f15f9f
commit 310b44f35b
5 changed files with 347 additions and 10 deletions

View file

@ -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