tao
tao copied to clipboard
[bug] setFullscreen will make 'decorations' show in MacOS
This issue has been upstreamed from https://github.com/tauri-apps/tauri/issues/5115
Describe the bug
if we await appWindow.setDecorations(false) at first,
then we await appWindow.setFullscreen(true),
and call await appWindow.setFullscreen(false) after a few seconds,
still can see the 'decorations' in these time.
Reproduction
reproduction code is here.
please use fullscreen branch and run the app to see the effect.
Expected behavior
No response
Platform and versions
Environment › OS: Mac OS 11.4.0 X64 › Node.js: 17.0.1 › npm: 8.1.0 › pnpm: Not installed! › yarn: 1.22.17 › rustup: 1.25.1 › rustc: 1.63.0 › cargo: 1.63.0 › Rust toolchain: stable-aarch64-apple-darwin
Packages Error only one package mangager should be used, but found npm and yarn
Cargo.tmol
[build-dependencies] tauri-build = { version = "1.0.4", features = [] }
[dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } tauri = { version = "1.0.5", features = ["api-all"] }
Stack trace
No response
Additional context
No response
https://github.com/tauri-apps/tao/blob/4524d5d399c8bf01d22b160a9f9a04d5b074b466/src/platform_impl/macos/util/async.rs#L124
@wusyong any idea how to fix this one?
@lucasfernog I don't think this is possible. I feel like most people want is inset buttons without title bar and the line. https://github.com/tauri-apps/tao/pull/513 is exploring this but it's inactive now.