From: Richard M. Stallman Date: Wed, 25 Jan 1995 00:44:32 +0000 (+0000) Subject: (x_destroy_window): Don't let frame being destroyed remain in X-Git-Tag: emacs-19.34~5312 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c5acd733f23f783e49dae2b2b2b842caffd29434;p=emacs.git (x_destroy_window): Don't let frame being destroyed remain in x_focus_event_frame. --- diff --git a/src/xterm.c b/src/xterm.c index 25d6388da9f..6e3d2056cb1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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;