From 598684243b587a96c986a0bc9627aaad56b0dfc1 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 28 Oct 2020 01:15:49 +0000 Subject: Fix build failure on macOS without features Fixes #4353. --- alacritty/src/window.rs | 7 ++++--- 1 file 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) { @@ -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 } -- cgit