From f1a943aeba9aa3ae067f282a140d85a8ca474252 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 27 Aug 2008 00:08:06 +0000 Subject: [PATCH] (x_term_init): Temporarily hide the partially initialized terminal while calling vendor-specific-keysyms. --- src/xterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 63d86bf6cba..b3b3d961cb9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10122,11 +10122,15 @@ x_term_init (display_name, xrm_option, resource_name) if (!EQ (XSYMBOL (Qvendor_specific_keysyms)->function, Qunbound)) { char *vendor = ServerVendor (dpy); + /* Temporarily hide the partially initialized terminal */ + terminal_list = terminal->next_terminal; UNBLOCK_INPUT; terminal->kboard->Vsystem_key_alist = call1 (Qvendor_specific_keysyms, vendor ? build_string (vendor) : empty_unibyte_string); BLOCK_INPUT; + terminal->next_terminal = terminal_list; + terminal_list = terminal; } terminal->kboard->next_kboard = all_kboards; -- 2.39.5