diff options
| -rw-r--r-- | src/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 2ccdec6fc41..bcf11e25222 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1807,7 +1807,7 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor | |||
| 1807 | 1807 | ||
| 1808 | /* When FRAME's root frame is not its terminal's top frame, make | 1808 | /* When FRAME's root frame is not its terminal's top frame, make |
| 1809 | that root frame the new top frame of FRAME's terminal. */ | 1809 | that root frame the new top frame of FRAME's terminal. */ |
| 1810 | if (root_frame (f) != XFRAME (top_frame)) | 1810 | if (NILP (top_frame) || root_frame (f) != XFRAME (top_frame)) |
| 1811 | { | 1811 | { |
| 1812 | struct frame *p = FRAME_PARENT_FRAME (f); | 1812 | struct frame *p = FRAME_PARENT_FRAME (f); |
| 1813 | 1813 | ||