[asterisk-commits] rizzo: trunk r117401 - /trunk/channels/console_gui.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 21 06:24:51 CDT 2008


Author: rizzo
Date: Wed May 21 06:24:50 2008
New Revision: 117401

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117401
Log:
do not die on SDL_ACTIVEEVENT reporting lost focus.


Modified:
    trunk/channels/console_gui.c

Modified: trunk/channels/console_gui.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/console_gui.c?view=diff&rev=117401&r1=117400&r2=117401
==============================================================================
--- trunk/channels/console_gui.c (original)
+++ trunk/channels/console_gui.c Wed May 21 06:24:50 2008
@@ -575,10 +575,12 @@
 				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 */




More information about the asterisk-commits mailing list