diff options
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r-- | osdep/macosx_application.m | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index aa334514a0..6c7748080c 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -382,13 +382,10 @@ void cocoa_stop_runloop(void) void cocoa_set_input_context(struct input_ctx *input_context) { - if (input_context) { - [mpv_shared_app().input_ready lock]; - [mpv_shared_app().input_ready signal]; - [mpv_shared_app().input_ready unlock]; - } - + [mpv_shared_app().input_ready lock]; mpv_shared_app().inputContext = input_context; + [mpv_shared_app().input_ready signal]; + [mpv_shared_app().input_ready unlock]; } void cocoa_post_fake_event(void) |