From d352abdf01564e6e512db5c2b8aaecdf37826cd8 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Mon, 17 May 2004 20:09:39 +0000 Subject: [PATCH] (kbd_buffer_get_event): Don't use event->code and modifiers in language change event. --- src/keyboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index b9e455a4431..15a16150ee8 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3967,9 +3967,7 @@ kbd_buffer_get_event (kbp, used_mouse_menu) else if (event->kind == LANGUAGE_CHANGE_EVENT) { /* Make an event (language-change (FRAME CHARSET LCID)). */ - obj = Fcons (event->modifiers, Qnil); - obj = Fcons (event->code, obj); - obj = Fcons (event->frame_or_window, obj); + obj = Fcons (event->frame_or_window, Qnil); obj = Fcons (Qlanguage_change, Fcons (obj, Qnil)); kbd_fetch_ptr = event + 1; } -- 2.39.5