Fix linux compile errors

This commit is contained in:
Julian Chang 2026-07-24 09:31:23 +09:00
parent b20b005283
commit ed0dacca43
No known key found for this signature in database

View file

@ -252,7 +252,7 @@ pub fn is_wayland() -> bool {
#[cfg(target_os = "linux")]
pub fn is_wayland() -> bool {
static IS_WAYLAND: OnceLock<bool> = OnceLock::new();
static IS_WAYLAND: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
*IS_WAYLAND.get_or_init(|| {
if cfg!(target_os = "linux") {