mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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 */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user