summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_events_objc.h
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-09-05 23:29:06 +0200
committerAkemi <der.richter@gmx.de>2017-09-07 20:42:26 +0200
commit9cb7f87b862883f5858315ff641d86703972e8ca (patch)
tree8f2352c16bc1ba595fffc6109455683819821f40 /osdep/macosx_events_objc.h
parent5771f7abf48282fe847137845f17eec5a5af245f (diff)
downloadmpv-9cb7f87b862883f5858315ff641d86703972e8ca.tar.bz2
mpv-9cb7f87b862883f5858315ff641d86703972e8ca.tar.xz
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
Diffstat (limited to 'osdep/macosx_events_objc.h')
-rw-r--r--osdep/macosx_events_objc.h2
1 files changed, 2 insertions, 0 deletions
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;