summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_events.m
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/macosx_events.m')
-rw-r--r--osdep/macosx_events.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m
index 434fc0cb3b..d1228bb471 100644
--- a/osdep/macosx_events.m
+++ b/osdep/macosx_events.m
@@ -92,8 +92,9 @@ static int convert_key(unsigned key, unsigned charcode)
void cocoa_check_events(void)
{
Application *app = mpv_shared_app();
- int key = [app.iqueue pop];
- if (key >= 0) mplayer_put_key(app.keyFIFO, key);
+ int key;
+ while ((key = [app.iqueue pop]) >= 0)
+ mplayer_put_key(app.keyFIFO, key);
}
void cocoa_put_key(int keycode)