diff --git a/player/main.c b/player/main.c index be14dfe03b..a5fb3e7f4d 100644 --- a/player/main.c +++ b/player/main.c @@ -355,6 +355,10 @@ struct MPContext *mp_create(void) init_libav(mpctx->global); mp_clients_init(mpctx); +#if HAVE_COCOA + cocoa_set_input_context(mpctx->input); +#endif + return mpctx; } @@ -461,10 +465,6 @@ int mp_initialize(struct MPContext *mpctx, char **options) if (opts->consolecontrols && cas_terminal_owner(mpctx, mpctx)) terminal_setup_getch(mpctx->input); -#if HAVE_COCOA - cocoa_set_input_context(mpctx->input); -#endif - if (opts->force_vo) { struct vo_extra ex = { .input_ctx = mpctx->input,