#When does the tauri::RunEvent::Resumed event fire?

14 messages · Page 1 of 1 (latest)

hollow heath
#

The docs state

Sent if the event loop is being resumed.

but when des that typically happen? Is it related to OS sleep / hybernate? In my tests, I can't get this event, and I am curious what it's for

nocturne cypress
hollow heath
#

Do you mean that it's equivalent to

tauri::RunEvent::WindowEvent tauri::WindowEvent::Focused

nocturne cypress
#

Had to dig that out of Tao to find where the event stems from, and by the looks of it along with what I found in Wry and Tauri, it's looking like yea just generally "the event loop has started again for any reason"

hollow heath
#

Thanks Simon!
This is how i have been experimenting with it, and so far haven't been able to get that other event to fire.

#

tried to do a kill -STOP pid and kill -CONT pid to see if it will show up but no success

#

The reason why I thought this event might be interesting was potentially using it to recover from weird states (e.g. laptop was asleep)

nocturne cypress
#

I think it probably should be fired on such an event, but I'm not sure 🤔 I'll ping the secret society of Tauri wizards to see if anyone has any ideas

hollow heath
#

It's not super critical, but i'm quite curious, and thank you

nocturne cypress
#

It's no problem at all, I'm also curious now x)

hollow heath
#

this may actually be a palatform specific events that just doesnt happen on OSX

nocturne cypress
#

It's possible, though I think from an API perspective some manner of equivalent should probably be created if the OS doesn't provide one 🤔 We'll see what the council of wizards say when they wake up

hollow heath
#

i scanned the tao code that you referenced earlier :p