Open AuracleTech opened 1 year ago
Sounds to me like an issue that would only happen while developing and not in a release build but I need to know your window configuration or better, a minimal repro.
For context 2 discord threads: https://discord.com/channels/616186924390023171/731495028677148753/1111000687308963901 (from OP) https://discord.com/channels/616186924390023171/1114886207520911391 (same issue different user)
The repro is basically:
tauri dev
and, in case you're manually running it in a terminal, focus something else than the terminal before the window opens.I can't reproduce, neither using tauri dev
or a release build binary.
I am closing this for now since it doesn't seem to affect the release build or when actually launching the executable normally without the tauri CLI involved.
tbh this is kinda annoying me too so i will reopen this with a low prio and assign myself to it :)
(Edit: if i can't find a workaround that does not affect production i'll close it again)
yeah I +1
this. Slightly annoying during development.
Describe the bug
Tauri doesn't focus when the window instance is launched, instead the focus is done prematurely during loading right after compilation which means that any focus on another window during loading will make the window appear in the background
Reproduction
Launch compile & run and focus on any other window (VSC for example) when tauri is launched it will be in the background
2023-05-24 15-18-11.webm
Expected behavior
When the window is launched (visible to the user) the focus is applied Currently the focus is applied earlier even though the window is not visible
Platform and versions
Stack trace
No response
Additional context
No response