mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
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.)
This commit is contained in:
parent
ba45c410d3
commit
ac6ebbbcbc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user