tauri-apps / tauri-apps/tauri

Cannot drag tauri app window on MacOS when titleBarStyle is set to Overlay

Open
#9,503 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage type: bug
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
  1. Generate a minimal tauri app (accept all default values)
    npm create tauri-app@latest

  2. Run npm install in tauri-app
    cd tauri-app
    npm install

  3. Edit src-tauri/tauri.conf.json and add titleBarStyle: Overlay to the windows property section:

"windows": [
      {
        "title": "tauri-app",
        "width": 800,
        "height": 600,
        "titleBarStyle": "Overlay"
      }
    ],
  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.