]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_destroy_window): Don't let frame being destroyed remain in
authorRichard M. Stallman <rms@gnu.org>
Wed, 25 Jan 1995 00:44:32 +0000 (00:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 25 Jan 1995 00:44:32 +0000 (00:44 +0000)
x_focus_event_frame.

src/xterm.c

index 25d6388da9f4c92bcdedbe6904fbc84120f18e28..6e3d2056cb1371ca9f91bfe36d8871e69abf72df 100644 (file)
@@ -1421,9 +1421,9 @@ static void XTframe_rehighlight ();
 
 /* 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 @@ x_destroy_window (f)
   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;