tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] tauri does not deliver WindowEvent::Focused when unstable feature is enabled

Open topecongiro opened this issue 1 year ago • 1 comments

Describe the bug

tauri does not deliver WindowEvent::Focused when unstable feature is enabled.

Reproduction

https://github.com/topecongiro/tauri-bug-focused-event

Expected behavior

The mwe app emits the following output on switching the focus of the window:

event = Ready
event = WindowEvent { label: "main", event: Focused(true) }
event = WindowEvent { label: "main", event: Focused(false) }

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 124.0.2478.97
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ 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-x86_64-pc-windows-msvc (default)
    - node: 21.7.3
    - yarn: 1.22.19
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.19
    - tauri-build [RUST]: 2.0.0-beta.15
    - wry [RUST]: 0.39.5
    - tao [RUST]: 0.28.0
    - tauri-cli [RUST]: 1.5.6
    - @tauri-apps/api [NPM]: 2.0.0-beta.11
    - @tauri-apps/cli [NPM]: 2.0.0-beta.17

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Vite

Stack trace

No response

Additional context

No response

topecongiro avatar May 12 '24 12:05 topecongiro

What is the status of this issue?

kanatapple avatar Oct 04 '24 13:10 kanatapple