comparison src/window.c @ 1280:5c66007ecabb

* window.c (Fset_window_configuration): Don't select the frame just because we restored its configuration. * window.c (Fset_window_configuration): Don't forget to set the frame's selected window when we can't call Fselect_window.
author Jim Blandy <jimb@redhat.com>
date Wed, 30 Sep 1992 14:28:46 +0000
parents 3929b2135e58
children f03e559aac3e
comparison
equal deleted inserted replaced
1279:74ae34a80f94 1280:5c66007ecabb
2484 } 2484 }
2485 } 2485 }
2486 } 2486 }
2487 2487
2488 FRAME_ROOT_WINDOW (f) = data->root_window; 2488 FRAME_ROOT_WINDOW (f) = data->root_window;
2489 2489 /* We also need to restore the frame's selected window; that's taken
2490 care of below, either by calling Fselect_window, or by explicit
2491 assignment. */
2492
2493 #if 0 /* I don't understand why this is needed, and it causes
2494 problems when the frame's old selected window has been
2495 deleted. */
2490 #ifdef MULTI_FRAME 2496 #ifdef MULTI_FRAME
2491 if (f != selected_frame && ! FRAME_TERMCAP_P (f)) 2497 if (f != selected_frame && ! FRAME_TERMCAP_P (f))
2492 Fselect_frame (WINDOW_FRAME (XWINDOW (data->root_window)), Qnil); 2498 Fselect_frame (WINDOW_FRAME (XWINDOW (data->root_window)), Qnil);
2499 #endif
2493 #endif 2500 #endif
2494 2501
2495 /* Set the screen height to the value it had before this function. */ 2502 /* Set the screen height to the value it had before this function. */
2496 if (frame_size_change) 2503 if (frame_size_change)
2497 change_frame_size (f, previous_frame_height, previous_frame_width, 0, 0); 2504 change_frame_size (f, previous_frame_height, previous_frame_width, 0, 0);
2502 if (!NILP (new_current_buffer)) 2509 if (!NILP (new_current_buffer))
2503 Fset_buffer (new_current_buffer); 2510 Fset_buffer (new_current_buffer);
2504 else 2511 else
2505 Fset_buffer (XWINDOW (selected_window)->buffer); 2512 Fset_buffer (XWINDOW (selected_window)->buffer);
2506 } 2513 }
2514 else
2515 FRAME_SELECTED_WINDOW (f) = data->current_window;
2507 2516
2508 Vminibuf_scroll_window = data->minibuf_scroll_window; 2517 Vminibuf_scroll_window = data->minibuf_scroll_window;
2509 return (Qnil); 2518 return (Qnil);
2510 } 2519 }
2511 2520