1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

tweak windows imports

This commit is contained in:
Wez Furlong 2019-02-16 08:54:24 -08:00
parent 77884e2522
commit 9bc99f5f1c
4 changed files with 9 additions and 8 deletions

View File

@ -37,7 +37,7 @@ x11 = {version ="~2.17", features = ["xlib_xcb"]}
[target.'cfg(any(target_os = "android", windows, all(unix, not(target_os = "macos"))))'.dependencies.glium]
version = "~0.20"
default-features = false
features = []
features = ["glutin"]
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.xcb]
version = "~0.8"

View File

@ -6,6 +6,7 @@ use mio;
use mio::{PollOpt, Ready, Token};
use std::cell::RefCell;
use std::collections::HashMap;
#[cfg(unix)]
use std::os::unix::io::RawFd;
use std::rc::Rc;
use std::sync::mpsc::{self, Receiver, Sender, TryRecvError};

View File

@ -1,19 +1,19 @@
use failure::Error;
use std::process::ExitStatus;
#[cfg(target_os = "macos")]
#[cfg(any(windows, target_os = "macos"))]
mod glutinloop;
#[cfg(target_os = "macos")]
#[cfg(any(windows, target_os = "macos"))]
pub use glutinloop::{GuiEventLoop, GuiSender};
#[cfg(target_os = "macos")]
#[cfg(any(windows, target_os = "macos"))]
pub use gliumwindows::TerminalWindow;
#[cfg(target_os = "macos")]
#[cfg(any(windows, target_os = "macos"))]
pub use mpsc::Receiver as GuiReceiver;
#[cfg(target_os = "macos")]
#[cfg(any(windows, target_os = "macos"))]
pub use glium::glutin::WindowId;
#[cfg(all(unix, not(target_os = "macos")))]

View File

@ -51,11 +51,11 @@ mod config;
mod futurecore;
mod opengl;
#[cfg(target_os = "macos")]
#[cfg(any(windows,target_os = "macos"))]
mod remotemio;
mod clipboard;
#[cfg(target_os = "macos")]
#[cfg(any(windows,target_os = "macos"))]
mod gliumwindows;
mod guiloop;