Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
topecongiro opened this issue May 12, 2024 · 1 comment · May be fixed by #12014
Open

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

topecongiro opened this issue May 12, 2024 · 1 comment · May be fixed by #12014
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@topecongiro
Copy link

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 topecongiro added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 12, 2024
@kanatapple
Copy link
Contributor

What is the status of this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants