summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-02 17:58:48 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-06-03 22:31:13 +0200
commitf0d212034795e5148c233702fcbe330932fad09b (patch)
treed84dc45e73e7d45d339a74ded58c6502b5a81736 /osdep
parentf13f0db33a18040e660b6ed76ad43d1870f096a2 (diff)
downloadmpv-f0d212034795e5148c233702fcbe330932fad09b.tar.bz2
mpv-f0d212034795e5148c233702fcbe330932fad09b.tar.xz
osx: cocoa_common: use default wakeup period
Now that Cocoa's input handling is done on a separate thread from the playloop it is ridicolously simple to have longer asynchronous sleeps when paused.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macosx_application.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index 598941490d..665a04b222 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -118,6 +118,14 @@ static NSString *escape_loadfile_name(NSString *input)
@synthesize eventsResponder = _events_responder;
@synthesize menuItems = _menu_items;
+- (void)sendEvent:(NSEvent *)event
+{
+ [super sendEvent:event];
+
+ if (self.inputContext)
+ mp_input_wakeup(self.inputContext);
+}
+
- (id)init
{
if (self = [super init]) {