//! OS window handling

pub const NAME: &str = "Inflorescence";

#[doc(inline)]
pub use iced::window::{events, Event, Id, Settings};

#[cfg(target_os = "linux")]
pub fn settings() -> Settings {
    Settings {
        platform_specific: iced::window::settings::PlatformSpecific {
            application_id: NAME.to_string(),
            override_redirect: false,
        },
        ..Default::default()
    }
}

#[cfg(not(target_os = "linux"))]
pub fn settings() -> Settings {
    Settings::default()
}