tauri: [bug] macos window fixed center

Describe the bug

With a clean install on macos, when running yarn tauri dev the window is fixed center, always on top, non-movable.

I have tried adding

 "center": false,
 "alwaysOnTop": false

to window, but no change.

Reproduction

yarn tauri dev

Expected behavior

Window is movable, and not always on top

Platform and versions

Operating System - Mac OS, version 11.6.0 X64

Node.js environment
  Node.js - 14.17.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 6.14.13
  yarn - 1.22.17

Rust environment
  rustc - 1.57.0
  cargo - 1.57.0

App directory structure
/node_modules
/public
/src-tauri
/src

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../build
  devPath - http://localhost:3000
  framework - React

Stack trace

No response

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 26 (14 by maintainers)

Most upvoted comments

i don’t see the “stability” here tbh, but who am i to judge 🤷

Furthermore we should probably stop all that off-topic chatting 😅

P.S. does anybody know if the actual issue here is resolved on macOS? 😂

This version shouldn’t work with tauri@rc, or at least not 100% (not to mention the 3 months of bugfixing…), if you need rc support you can install the cli from this branch: https://github.com/tauri-apps/tauri/pull/3579

Yep, that’s one of the pain points. You can’t use the npm cli until the next release. So for now it’s cargo tauri dev (you probably need to re-install the cli first so that it includes changes added the last 2 days) -> see amr’s step 2 + 3