Cannot drag tauri app window on MacOS when titleBarStyle is set to Overlay
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 111k
- Forks
- 4k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 45
Description
Describe the bug
On MacOS Sonoma, I cannot move the application window of my tauri app when titleBarStyle is set to Overlay:
tauri.conf.json
"windows": [
{
"title": "tauri-app",
"width": 800,
"height": 600,
"titleBarStyle": "Overlay"
}
]
Reproduction
-
Generate a minimal tauri app (accept all default values)
npm create tauri-app@latest -
Run npm install in
tauri-app
cd tauri-app
npm install -
Edit
src-tauri/tauri.conf.jsonand addtitleBarStyle: Overlayto thewindowsproperty section:
"windows": [
{
"title": "tauri-app",
"width": 800,
"height": 600,
"titleBarStyle": "Overlay"
}
],
- Run tauri app
npm run tauri dev
Faulty behaviour: The application window cannot be moved.
Expected behavior
Expected behaviour: The application window can be moved.
Full tauri info output
npm run tauri info
> tauri-app@0.0.0 tauri
> tauri info
[⚠] Environment
- OS: Mac OS 14.4.1 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.75.0 (82e1608df 2023-12-21) (Homebrew)
✔ cargo: 1.75.0
⚠ rustup: not installed!
If you have rust installed some other way, we recommend uninstalling it
then use rustup instead. Visit https://rustup.rs/
⚠ Rust toolchain: couldn't be detected!
Maybe you don't have rustup installed? if so, Visit https://rustup.rs/
- node: 21.5.0
- npm: 10.2.4
[-] Packages
- tauri [RUST]: 1 (no lockfile)
- tauri-build [RUST]: no manifest (no lockfile)
- wry [RUST]: no manifest (no lockfile)
- tao [RUST]: no manifest (no lockfile)
- @tauri-apps/api [NPM]: 1.5.3
- @tauri-apps/cli [NPM]: 1.5.11
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:1420/
- bundler: Vite
Stack trace
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using src-tauri/tauri.conf.json with titleBarStyle set to Overlay, then run npm run tauri dev on macOS Sonoma. Trace how this window configuration is handled in the desktop implementation and verify that the resulting application window can be moved without changing the expected Overlay title-bar behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100