tauri
tauri copied to clipboard
[bug] [macos] [v2] Window cannot join other spaces and cannot be drawn over fullscreen apps in both "tauri dev" and "tauri build" modes
Describe the bug
- Both
tauri devandtauri buildmodes:- The window is always drawn on the original workspace and cannot be moved to another one.
Window options alwaysOnTop and visibleOnAllWorkspaces are set to true.
Capability window:allow-set-visible-on-all-workspaces is set.
Also see possibly related bug in tauri v1. There the problem arises only in tauri build mode.
Reproduction
Reproducer repo: https://github.com/romazu/tauri-macos-draw-window-over-fullscreen/tree/tauri_v2
Expected behavior
An alwaysOnTop, visibleOnAllWorkspaces window can be drawn over other fullscreen apps in other workspaces on macOS in both the tauri dev and tauri build modes.
Full tauri info output
yarn run v1.22.21
$ tauri info
[✔] Environment
- OS: Mac OS 14.4.1 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
✔ cargo: 1.77.2 (e52e36006 2024-03-26)
✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 21.7.1
- pnpm: 8.15.1
- yarn: 1.22.21
- npm: 10.5.0
[-] Packages
- tauri [RUST]: 2.0.0-beta.16
- tauri-build [RUST]: 2.0.0-beta.13
- wry [RUST]: 0.39.2
- tao [RUST]: 0.27.1
- @tauri-apps/api [NPM]: 2.0.0-beta.9
- @tauri-apps/cli [NPM]: 2.0.0-beta.13
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../src
✨ Done in 4.67s.
Stack trace
No response
Additional context
No response
Seems duplicated to https://github.com/tauri-apps/tauri/issues/9439
Can you try if this works? https://github.com/tauri-apps/tao/issues/189#issuecomment-2069020970