diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-10-28 01:15:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 01:15:49 +0000 |
commit | 598684243b587a96c986a0bc9627aaad56b0dfc1 (patch) | |
tree | dc868c0ff6ed579aa83f062ad72e8929639b892d | |
parent | 5a3bf69e3fd771271921f62219cdb8f920db39ee (diff) | |
download | alacritty-598684243b587a96c986a0bc9627aaad56b0dfc1.tar.gz alacritty-598684243b587a96c986a0bc9627aaad56b0dfc1.zip |
Fix build failure on macOS without features
Fixes #4353.
-rw-r--r-- | alacritty/src/window.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs index 74014a07..38e29328 100644 --- a/alacritty/src/window.rs +++ b/alacritty/src/window.rs @@ -4,7 +4,7 @@ use { std::sync::atomic::AtomicBool, std::sync::Arc, - glutin::platform::unix::{EventLoopWindowTargetExtUnix, WindowBuilderExtUnix, WindowExtUnix}, + glutin::platform::unix::{WindowBuilderExtUnix, WindowExtUnix}, image::ImageFormat, }; @@ -13,6 +13,7 @@ use { use { wayland_client::protocol::wl_surface::WlSurface, wayland_client::{Attached, EventQueue, Proxy}, + glutin::platform::unix::EventLoopWindowTargetExtUnix, alacritty_terminal::config::Colors, @@ -339,7 +340,7 @@ impl Window { self.window().request_user_attention(RequestUserAttentionType::Critical); } - #[cfg(any(not(feature = "x11"), windows))] + #[cfg(any(windows, not(any(feature = "x11", target_os = "macos"))))] pub fn set_urgent(&self, _is_urgent: bool) {} pub fn set_outer_position(&self, pos: PhysicalPosition<i32>) { @@ -397,7 +398,7 @@ impl Window { self.window().wayland_display() } - #[cfg(any(not(feature = "wayland"), any(target_os = "macos", windows)))] + #[cfg(not(any(feature = "wayland", target_os = "macos", windows)))] pub fn wayland_display(&self) -> Option<*mut std::ffi::c_void> { None } |