From: Luigi Rizzo Date: Wed, 21 May 2008 11:24:50 +0000 (+0000) Subject: do not die on SDL_ACTIVEEVENT reporting lost focus. X-Git-Tag: 1.6.2.0-beta1~2200 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1ae86f643c5ca1b6cd657c9d6bad4e5b4979e05;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/console_gui.c b/channels/console_gui.c index 1f6c4eb2aa..ebb2d5312d 100644 --- a/channels/console_gui.c +++ b/channels/console_gui.c @@ -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 */