From ac6ebbbcbc89ef91fbf4858c86ced53ed471cd14 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 27 May 2015 17:57:24 +0200 Subject: player: set cocoa input context at an earlier point There is not much of a reason to do this later. (Since some time ago, the input_ctx is created right at the start, so this can be done now.) --- player/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player') 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, -- cgit v1.2.3