diff options
author | wm4 <wm4@nowhere> | 2015-05-27 17:57:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-27 17:57:24 +0200 |
commit | ac6ebbbcbc89ef91fbf4858c86ced53ed471cd14 (patch) | |
tree | be4fea89a5d524c472829c454f78e53386aff221 /player | |
parent | ba45c410d3b9ccda16bbaacfbd64d8a67a361c43 (diff) |
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.)
Diffstat (limited to 'player')
-rw-r--r-- | player/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, |