Vadoola/Tomotroid

BorderlessWindow:minimize(true) can not work on macOS

Closed this issue · 4 comments

slint issues #4685
winit issues Fixed #1411

Thank you for taking the time to dig into this.

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();

Thank you, I really appreciate it.

This was closed in Commit 2662b96