Type Event Revision Release 2024.3703 Keywords Desktop Window See also Creating Win32 Desktop Apps Creating macOS Desktop Apps
Invoked when window is being sent to background or activated again.
function windowStateListener(event) print("Window was sent to: ", event.phase) end Runtime:addEventListener( "windowState", windowStateListener )