Move api module into platform::linux

This commit is contained in:
Victor Berger 2017-03-03 20:56:27 +01:00
parent d0ae5bda16
commit 4acf437221
16 changed files with 12 additions and 17 deletions

View file

@ -7,14 +7,12 @@ use Window;
use platform::Window as LinuxWindow;
use platform::{UnixBackend, UNIX_BACKEND};
use WindowBuilder;
use api::x11::XConnection;
use api::x11::ffi::XVisualInfo;
use platform::x11::XConnection;
use platform::x11::ffi::XVisualInfo;
use wayland_client::protocol::wl_display::WlDisplay;
use wayland_client::protocol::wl_surface::WlSurface;
pub use api::x11;
// TODO: do not expose XConnection
pub fn get_x11_xconnection() -> Option<Arc<XConnection>> {
match *UNIX_BACKEND {