do not die on SDL_ACTIVEEVENT reporting lost focus.
authorLuigi Rizzo <rizzo@icir.org>
Wed, 21 May 2008 11:24:50 +0000 (11:24 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 21 May 2008 11:24:50 +0000 (11:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117401 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/console_gui.c

index 1f6c4eb..ebb2d53 100644 (file)
@@ -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 */