I'm trying to listen for the WindowEvent::Focused event in the RunEvent::WindowEvent but it never gets triggered. All other RunEvent::WindowEvent events are getting triggered but not the WindowEvent::Focused event.
The screenshot below is me trying to un-focus the window by minimizing and switching programs but no matter what I do I can't seem to trigger the WindowEvent::Focused event whilst all other RunEvent::WindowEvent are getting triggered just fine.
#WindowEvent::Focused not triggered
10 messages · Page 1 of 1 (latest)
this does ring a bell 🤔
Ah yeah: <#1004848213775364146 message> Let me see if i find a gh issue about it
(in that link is also a workaround, the focus event should work fine in on_window_event)
That work around should work for me, was searching if someone had the issue before but couldn't find anything, so apologies for the duplicate 🙏
to be fair, i only found it because it was on my own bug triage todo list under "runevent focus not firing" so don't worry about it :D
but, one thing i would appreciate is if you could open an issue about it
Sure thing, will do it in a few hours as I'm not at my computer right now but once I do I'll let you know
thank you!
@old yarrow Alright, opened an issue: https://github.com/tauri-apps/tauri/issues/6460
If anything needs adjustment in the issue, please let me know