[bug] decorations false do not work
Describe the bug
Reproduction
No response
Expected behavior
No response
Full tauri info output
❯ cargo tauri info
[✔] Environment
- OS: Mac OS 15.1.1 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
- node: 20.18.0
- pnpm: 9.12.2
- npm: 10.8.2
- bun: 1.1.34
[-] Packages
- tauri 🦀: 2.1.1
- tauri-build 🦀: 2.0.3
- wry 🦀: 0.47.2
- tao 🦀: 0.30.8
- tauri-cli 🦀: 2.1.0
- @tauri-apps/api : 2.1.1
- @tauri-apps/cli : 2.1.0
[-] Plugins
- tauri-plugin-shell 🦀: 2.0.2
- @tauri-apps/plugin-shell : 2.0.1
- tauri-plugin-store 🦀: 2.1.0
- @tauri-apps/plugin-store : 2.1.0
- tauri-plugin-http 🦀: 2.0.4
- @tauri-apps/plugin-http : 2.0.1
- tauri-plugin-log 🦀: 2.0.3
- @tauri-apps/plugin-log : not installed!
- tauri-plugin-os 🦀: 2.0.1
- @tauri-apps/plugin-os : 2.0.0
- tauri-plugin-dialog 🦀: 2.0.4
- @tauri-apps/plugin-dialog : 2.0.1
- tauri-plugin-fs 🦀: 2.1.0
- @tauri-apps/plugin-fs : 2.0.3
- tauri-plugin-notification 🦀: 2.0.1
- @tauri-apps/plugin-notification : not installed!
- tauri-plugin-process 🦀: 2.0.1
- @tauri-apps/plugin-process : 2.0.0
- tauri-plugin-deep-link 🦀: 2.0.2
- @tauri-apps/plugin-deep-link : not installed!
- tauri-plugin-updater 🦀: 2.1.0
- @tauri-apps/plugin-updater : 2.0.0
- tauri-plugin-single-instance 🦀: 2.0.2
- @tauri-apps/plugin-single-instance : not installed!
- tauri-plugin-barcode-scanner 🦀: 2.0.1
- @tauri-apps/plugin-barcode-scanner : not installed!
- tauri-plugin-autostart 🦀: 2.0.1
- @tauri-apps/plugin-autostart : 2.0.0
- tauri-plugin-window-state 🦀: 2.0.2
- @tauri-apps/plugin-window-state : 2.0.0
- tauri-plugin-global-shortcut 🦀: 2.0.1
- @tauri-apps/plugin-global-shortcut : 2.0.0
[-] App
- build-type: bundle
- CSP: style-src 'unsafe-inline' 'self' https://fonts.googleapis.com; font-src https://fonts.gstatic.com 'self' asset: http://asset.localhost; default-src 'self' customprotocol: asset:; script-src 'unsafe-eval' 'self'; frame-src https: asset: http://asset.localhost; media-src https://h5-inside.vmic.xyz/fun/assets/why-fun.mp4; img-src 'self' asset: http://asset.localhost blob: data: https: http://api.iconify.design http://fun.vmic.xyz; connect-src ipc: tauri: http: ws: https:; object-src 'self' asset: http://asset.localhost
- frontendDist: ../dist
- devUrl: http://127.0.0.1:1420/
- framework: Vue.js
- bundler: Vite
Stack trace
No response
Additional context
No response
but this effect
window.set_decorations(false).unwrap();
I'm also facing the same issue where "decorations": false doesn't work, In my case, clearing the cache %APPDATA%/(your-app-identifier) folder resolved the problem. I'm not sure if it will work for your environment, but I hope this helps a little.
Since you seem to be also using window state plugin, maybe check if https://github.com/tauri-apps/plugins-workspace/issues/2203#issuecomment-2540412621 helps?
This might not be very intuitive, but window state plugin saves and restores the decoration state by default (it means if you used
decorations: truethe first time anddecorations: falsethe second time, the decorations will be restored to true because it's saved in that way), you can disable it throughwith_state_flagsthough