aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_gui.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-21 11:24:50 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-21 11:24:50 +0000
commit137f90f7b98e60c25c9614be8177c58b175ccdb2 (patch)
treebd69b94d1baf3af6ac7897a690518489f654870c /channels/console_gui.c
parent1c9b0da173019eab50b5573378402f99fd19f9dc (diff)
do not die on SDL_ACTIVEEVENT reporting lost focus.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117401 f38db490-d61c-443f-a65b-d21fe96a405b
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 */