mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Make platform::linux generic over X11 and Wayland.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user