mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 21:57:39 +00:00
Ignore empty event.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25206 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
038f77e272
commit
58a471c45e
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user