do not die on SDL_ACTIVEEVENT reporting lost focus.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Luigi Rizzo 17 years ago
parent 46e68c36b6
commit e1ae86f643

@ -575,10 +575,12 @@ static void eventhandler(struct video_desc *env, const char *caption)
break;
case SDL_ACTIVEEVENT:
#if 0 /* do not react, we don't want to die because the window is minimized */
if (ev[i].active.gain == 0 && ev[i].active.state & SDL_APPACTIVE) {
ast_log(LOG_WARNING, "/* somebody has killed us ? */");
ast_cli_command(gui->outfd, "stop now");
}
#endif
break;
case SDL_KEYUP: /* ignore, for the time being */

Loading…
Cancel
Save