diff options
| author | Richard M. Stallman | 1995-01-25 00:44:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-25 00:44:32 +0000 |
| commit | c5acd733f23f783e49dae2b2b2b842caffd29434 (patch) | |
| tree | 5e02ee292695cf90b51081c8679184e404095203 | |
| parent | 3de76c480c9fff0f4e5d6ad1c617c9ca93860177 (diff) | |
| download | emacs-c5acd733f23f783e49dae2b2b2b842caffd29434.tar.gz emacs-c5acd733f23f783e49dae2b2b2b842caffd29434.zip | |
(x_destroy_window): Don't let frame being destroyed remain in
x_focus_event_frame.
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 (); | |||
| 1421 | 1421 | ||
| 1422 | /* The focus has changed. Update the frames as necessary to reflect | 1422 | /* The focus has changed. Update the frames as necessary to reflect |
| 1423 | the new situation. Note that we can't change the selected frame | 1423 | the new situation. Note that we can't change the selected frame |
| 1424 | here, because the lisp code we are interrupting might become confused. | 1424 | here, because the Lisp code we are interrupting might become confused. |
| 1425 | Each event gets marked with the frame in which it occurred, so the | 1425 | Each event gets marked with the frame in which it occurred, so the |
| 1426 | lisp code can tell when the switch took place by examining the events. */ | 1426 | Lisp code can tell when the switch took place by examining the events. */ |
| 1427 | 1427 | ||
| 1428 | static void | 1428 | static void |
| 1429 | x_new_focus_frame (frame) | 1429 | x_new_focus_frame (frame) |
| @@ -5280,6 +5280,8 @@ x_destroy_window (f) | |||
| 5280 | f->display.x = 0; | 5280 | f->display.x = 0; |
| 5281 | if (f == x_focus_frame) | 5281 | if (f == x_focus_frame) |
| 5282 | x_focus_frame = 0; | 5282 | x_focus_frame = 0; |
| 5283 | if (f == x_focus_event_frame) | ||
| 5284 | x_focus_event_frame = 0; | ||
| 5283 | if (f == x_highlight_frame) | 5285 | if (f == x_highlight_frame) |
| 5284 | x_highlight_frame = 0; | 5286 | x_highlight_frame = 0; |
| 5285 | 5287 | ||