From: Richard M. Stallman Date: Fri, 21 Jun 1996 15:31:50 +0000 (+0000) Subject: (kbd_buffer_get_event): Don't call x_activate_menubar for a deleted frame. X-Git-Tag: emacs-19.34~388 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e649d07667c827997bfc1fbc51472d231af6a053;p=emacs.git (kbd_buffer_get_event): Don't call x_activate_menubar for a deleted frame. --- 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.