(do_switch_frame): Set Vterminal_frame to selected_frame.
f->visible = 1; /* FRAME_SET_VISIBLE wd set frame_garbaged. */
f->async_visible = 1; /* Don't let visible be cleared later. */
f->display.nothing = 1; /* Nonzero means frame isn't deleted. */
- XSETFRAME (Vterminal_frame, f);
return f;
}
switching means we must redisplay the whole thing. */
windows_or_buffers_changed++;
SET_FRAME_GARBAGED (XFRAME (frame));
+ XSETFRAME (Vterminal_frame, frame);
}
selected_frame = XFRAME (frame);