{
Lisp_Object tail, frame;
- if (FRAME_MSDOS_P (f))
+ if (FRAME_MSDOS_P (f) && !FRAME_PARENT_FRAME (f))
{
/* On MS-DOS, all frames use the same screen, so a change in
size affects all frames. Termcap now supports multiple
ttys. */
FOR_EACH_FRAME (tail, frame)
- if (!FRAME_WINDOW_P (XFRAME (frame)))
+ if (!FRAME_WINDOW_P (XFRAME (frame))
+ && !FRAME_PARENT_FRAME (XFRAME (frame)))
change_frame_size_1 (XFRAME (frame), new_width, new_height,
pretend, delay, safe);
}
block_input ();
#ifdef MSDOS
- /* We only can set screen dimensions to certain values supported by
- our video hardware. Try to find the smallest size greater or
- equal to the requested dimensions, while accounting for the fact
- that the menu-bar lines are not counted in the frame height. */
- int dos_new_text_lines = new_text_lines + FRAME_TOP_MARGIN (f);
-
- dos_set_window_size (&dos_new_text_lines, &new_text_cols);
- new_text_lines = dos_new_text_lines - FRAME_TOP_MARGIN (f);
+ if (!FRAME_PARENT_FRAME (f))
+ {
+ /* We only can set screen dimensions to certain values supported
+ by our video hardware. Try to find the smallest size greater
+ or equal to the requested dimensions, while accounting for the
+ fact that the menu-bar lines are not counted in the frame
+ height. */
+ int dos_new_text_lines = new_text_lines + FRAME_TOP_MARGIN (f);
+
+ dos_set_window_size (&dos_new_text_lines, &new_text_cols);
+ new_text_lines = dos_new_text_lines - FRAME_TOP_MARGIN (f);
+ }
#endif
if (new_inner_width != old_inner_width)