summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-02 18:21:45 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-03 22:31:13 +0200
commitd67b687530967780f54a4a6a8fa89655394afbb8 (patch)
tree20299fb998665d0cb56a1ad899ade2600e172c58
parentf0d212034795e5148c233702fcbe330932fad09b (diff)
downloadmpv-d67b687530967780f54a4a6a8fa89655394afbb8.tar.bz2
mpv-d67b687530967780f54a4a6a8fa89655394afbb8.tar.xz
macosx_events: send all queued events
Seeking feels a little faster or it may be self suggestion. There's really no reason to just send only one event at a time.
-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)