BorderlessWindow:minimize(true) can not work on macOS
Closed this issue · 4 comments
Vadoola commented
Thank you for taking the time to dig into this.
gqf2008 commented
it work
let mut backend = i_slint_backend_winit::Backend::new().unwrap();
if cfg!(target_os = "macos") {
use i_slint_backend_winit::winit::platform::macos::WindowBuilderExtMacOS;
backend.window_builder_hook = Some(Box::new(|builder| {
builder.with_decorations(false)
}));
}
slint::platform::set_platform(Box::new(backend)).unwrap();
Vadoola commented
Thank you, I really appreciate it.