Handle the SDL APP_ events ourselves, rather than letting SDL handle
them.