Ignore empty event.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25206 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-11-29 23:32:08 +00:00
parent 038f77e272
commit 58a471c45e
1 changed files with 2 additions and 0 deletions

View File

@ -875,6 +875,8 @@ static int control(uint32_t request, void *data, ...)
- (void) check_events
{
event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate dateWithTimeIntervalSinceNow:0.0001] inMode:NSEventTrackingRunLoopMode dequeue:YES];
if (event == nil)
return;
[NSApp sendEvent:event];
}