diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 50fd6857784..1299ba38e3d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14027,11 +14027,6 @@ redisplay_internal (void) | |||
| 14027 | /* Notice any pending interrupt request to change frame size. */ | 14027 | /* Notice any pending interrupt request to change frame size. */ |
| 14028 | do_pending_window_change (true); | 14028 | do_pending_window_change (true); |
| 14029 | 14029 | ||
| 14030 | /* do_pending_window_change could change the selected_window due to | ||
| 14031 | frame resizing which makes the selected window too small. */ | ||
| 14032 | if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw) | ||
| 14033 | sw = w; | ||
| 14034 | |||
| 14035 | /* Clear frames marked as garbaged. */ | 14030 | /* Clear frames marked as garbaged. */ |
| 14036 | clear_garbaged_frames (); | 14031 | clear_garbaged_frames (); |
| 14037 | 14032 | ||
| @@ -14039,6 +14034,13 @@ redisplay_internal (void) | |||
| 14039 | if (NILP (Vmemory_full)) | 14034 | if (NILP (Vmemory_full)) |
| 14040 | prepare_menu_bars (); | 14035 | prepare_menu_bars (); |
| 14041 | 14036 | ||
| 14037 | /* do_pending_window_change could change the selected_window due to | ||
| 14038 | frame resizing which makes the selected window too small. | ||
| 14039 | prepare_menu_bars may call lisp hooks and hence also change the | ||
| 14040 | selected_window. */ | ||
| 14041 | if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw) | ||
| 14042 | sw = w; | ||
| 14043 | |||
| 14042 | reconsider_clip_changes (w); | 14044 | reconsider_clip_changes (w); |
| 14043 | 14045 | ||
| 14044 | /* In most cases selected window displays current buffer. */ | 14046 | /* In most cases selected window displays current buffer. */ |