fix missing window focus service on windows/macos (#9824)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-11-05 11:28:27 +08:00 committed by GitHub
parent 12c1337b7b
commit a4bd23c9de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,6 +111,8 @@ pub fn new() -> ServerPtr {
// wayland does not support multiple displays currently
server.add_service(Box::new(input_service::new_window_focus()));
}
#[cfg(not(target_os = "linux"))]
server.add_service(Box::new(input_service::new_window_focus()));
}
}
Arc::new(RwLock::new(server))