diff --git a/src/xdisp.c b/src/xdisp.c index cc0a689ba3..827a484fc9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -15650,9 +15650,6 @@ redisplay_internal (void) clear_desired_matrices (f); } - /* Notice any pending interrupt request to change frame size. */ - do_pending_window_change (true); - /* Clear frames marked as garbaged. */ clear_garbaged_frames (); @@ -15660,6 +15657,9 @@ redisplay_internal (void) if (NILP (Vmemory_full)) prepare_menu_bars (); + /* Notice any pending interrupt request to change frame size. */ + do_pending_window_change (true); + /* do_pending_window_change could change the selected_window due to frame resizing which makes the selected window too small. prepare_menu_bars may call lisp hooks and hence also change the