tauri
tauri copied to clipboard
[bug] [macos] [v1] Window cannot join other spaces and cannot be drawn over fullscreen apps in "tauri build" mode
Describe the bug
- In
tauri dev
mode:- Window can be drawn on another workspace, i.e. window.show() rerenders the window on the currently active space. This is the expected behavior.
- In
tauri build
mode:- Window is always drawn on the original workspace and cannot be moved to another space. That's the problem.
Window option alwaysOnTop
is set to true
.
Reproduction
Reproducer repo: https://github.com/romazu/tauri-macos-draw-window-over-fullscreen/tree/tauri_v1
Expected behavior
An alwaysOnTop
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]: 1.6.2
- tauri-build [RUST]: 1.5.1
- wry [RUST]: 0.24.8
- tao [RUST]: 0.16.9
- @tauri-apps/api [NPM]: 1.5.4
- @tauri-apps/cli [NPM]: 1.5.11
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../src
- devPath: ../src
✨ Done in 7.16s.
Stack trace
No response
Additional context
No response