Fix build failure on macOS without features

Fixes #4353.
This commit is contained in:
Christian Duerr 2020-10-28 01:15:49 +00:00 committed by GitHub
parent 5a3bf69e3f
commit 598684243b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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
}