]> git.eshelyaron.com Git - emacs.git/commitdiff
(kbd_buffer_get_event): Don't call x_activate_menubar for a deleted frame.
authorRichard M. Stallman <rms@gnu.org>
Fri, 21 Jun 1996 15:31:50 +0000 (15:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 21 Jun 1996 15:31:50 +0000 (15:31 +0000)
src/keyboard.c

index e9f6dc7e49eb550a8b834a1532494a1631c686b9..b8025a11b1472fbe9852c23ff0584b67c62ac3e9 100644 (file)
@@ -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.