From e649d07667c827997bfc1fbc51472d231af6a053 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 21 Jun 1996 15:31:50 +0000 Subject: [PATCH] (kbd_buffer_get_event): Don't call x_activate_menubar for a deleted frame. --- src/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index e9f6dc7e49e..b8025a11b14 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2697,7 +2697,8 @@ kbd_buffer_get_event (kbp, used_mouse_menu) { kbd_fetch_ptr = event + 1; input_pending = readable_events (0); - x_activate_menubar (XFRAME (event->frame_or_window)); + if (FRAME_LIVE_P (XFRAME (event->frame_or_window))) + x_activate_menubar (XFRAME (event->frame_or_window)); } #endif /* Just discard these, by returning nil. -- 2.39.2