From 9cb7f87b862883f5858315ff641d86703972e8ca Mon Sep 17 00:00:00 2001 From: Akemi Date: Tue, 5 Sep 2017 23:29:06 +0200 Subject: osx: fix media keys input when other Apps steal the priority other Apps do the same as mpv and tap into the global event chain. events that are handled are not being propagated down the event chain. that can lead to mpv not getting any media key events anymore when they are held back by other Apps. we will just move mpv back to the top of the event list when mpv is refocused and is not at the top of the list any more. Fixes #4834 --- osdep/macosx_events_objc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'osdep/macosx_events_objc.h') diff --git a/osdep/macosx_events_objc.h b/osdep/macosx_events_objc.h index 36de66dc88..f3210f2580 100644 --- a/osdep/macosx_events_objc.h +++ b/osdep/macosx_events_objc.h @@ -40,6 +40,8 @@ struct input_ctx; - (void)putKey:(int)keycode; +- (void)setHighestPriotityMediaKeysTap; + - (void)handleFilesArray:(NSArray *)files; - (bool)processKeyEvent:(NSEvent *)event; -- cgit v1.2.3