changeset 10546:7515c28a59d9

(x_destroy_window): Don't let frame being destroyed remain in x_focus_event_frame.
author Richard M. Stallman <rms@gnu.org>
date Wed, 25 Jan 1995 00:44:32 +0000
parents cbd9cef03245
children 8916eeebe860
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Wed Jan 25 00:43:25 1995 +0000
+++ b/src/xterm.c	Wed Jan 25 00:44:32 1995 +0000
@@ -1421,9 +1421,9 @@
 
 /* The focus has changed.  Update the frames as necessary to reflect
    the new situation.  Note that we can't change the selected frame
-   here, because the lisp code we are interrupting might become confused.
+   here, because the Lisp code we are interrupting might become confused.
    Each event gets marked with the frame in which it occurred, so the
-   lisp code can tell when the switch took place by examining the events.  */
+   Lisp code can tell when the switch took place by examining the events.  */
 
 static void
 x_new_focus_frame (frame)
@@ -5280,6 +5280,8 @@
   f->display.x = 0;
   if (f == x_focus_frame)
     x_focus_frame = 0;
+  if (f == x_focus_event_frame)
+    x_focus_event_frame = 0;
   if (f == x_highlight_frame)
     x_highlight_frame = 0;