From f0d212034795e5148c233702fcbe330932fad09b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 2 Jun 2013 17:58:48 +0200 Subject: 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. --- osdep/macosx_application.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'osdep/macosx_application.m') 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]) { -- cgit v1.2.3