summaryrefslogtreecommitdiff
path: root/channels/console_gui.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2008-05-21 11:24:50 +0000
committerLuigi Rizzo <rizzo@icir.org>2008-05-21 11:24:50 +0000
commite1ae86f643c5ca1b6cd657c9d6bad4e5b4979e05 (patch)
treebd69b94d1baf3af6ac7897a690518489f654870c /channels/console_gui.c
parent46e68c36b6a04365bb12e23be60694d95f1d97fa (diff)
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
Diffstat (limited to 'channels/console_gui.c')
-rw-r--r--channels/console_gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/console_gui.c b/channels/console_gui.c
index 1f6c4eb2a..ebb2d5312 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 */