tao icon indicating copy to clipboard operation
tao copied to clipboard

[bug] setFullscreen will make 'decorations' show in MacOS

Open tauri-bot opened this issue 3 years ago • 3 comments

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

tauri-bot avatar Sep 01 '22 16:09 tauri-bot

https://github.com/tauri-apps/tao/blob/4524d5d399c8bf01d22b160a9f9a04d5b074b466/src/platform_impl/macos/util/async.rs#L124

lucasfernog avatar Sep 10 '22 13:09 lucasfernog

@wusyong any idea how to fix this one?

lucasfernog avatar Jun 14 '23 22:06 lucasfernog

@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.

wusyong avatar Jun 15 '23 06:06 wusyong