changeset 15474:0b4fc263d4f2

(kbd_buffer_get_event): Don't call x_activate_menubar for a deleted frame.
author Richard M. Stallman <rms@gnu.org>
date Fri, 21 Jun 1996 15:31:50 +0000
parents cdf40972804f
children fc94c6fcee69
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Fri Jun 21 15:30:28 1996 +0000
+++ b/src/keyboard.c	Fri Jun 21 15:31:50 1996 +0000
@@ -2697,7 +2697,8 @@
 	{
 	  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.