Describe the bug
tauri::WindowEvent::Focused(false) window event is fired when trying to move/resize the window on Windows 10 as of tauri 1.2.
tauri 1.1 works fine.
Reproduction
- clone https://github.com/jondot/tauri-tray-app
- change tauri version to "1.2" from "src-tauri/Cargo.toml"
- run dev (yarn run tauri dev) (if not using
pnpm, change pnpm -> npm run from src-tauri/tauri.conf.json
- Drag window title to move it.
tauri::WindowEvent::Focus(false) fires and the window is closed by the window focus event handler.
Expected behavior
With taur version 1.1, the window is being moved.
Platform and versions
Environment
› OS: Windows 10.0.19045 X64
› Webview2: 108.0.1462.54
› MSVC:
- Visual Studio Build Tools 2022
› Node.js: 18.12.1
› npm: 8.19.2
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-pc-windows-msvc
Packages
› @tauri-apps/cli [NPM]: 1.2.2
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.2,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.7,
› wry [RUST]: 0.23.4,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: React
› bundler: Vite
App directory structure
├─ .git
├─ .vscode
├─ node_modules
├─ public
├─ src
└─ src-tauri
Stack trace
Additional context
No response
Describe the bug
tauri::WindowEvent::Focused(false)window event is fired when trying to move/resize the window on Windows 10 as of tauri 1.2.tauri 1.1 works fine.
Reproduction
pnpm, changepnpm->npm runfromsrc-tauri/tauri.conf.jsontauri::WindowEvent::Focus(false)fires and the window is closed by the window focus event handler.Expected behavior
With taur version 1.1, the window is being moved.
Platform and versions
Environment
› OS: Windows 10.0.19045 X64
› Webview2: 108.0.1462.54
› MSVC:
- Visual Studio Build Tools 2022
› Node.js: 18.12.1
› npm: 8.19.2
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-pc-windows-msvc
Packages
› @tauri-apps/cli [NPM]: 1.2.2
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.2,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.7,
› wry [RUST]: 0.23.4,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: React
› bundler: Vite
App directory structure
├─ .git
├─ .vscode
├─ node_modules
├─ public
├─ src
└─ src-tauri
Stack trace
Additional context
No response