Don't forget setting the top frame if not switching root frames

* src/frame.c (do_switch_frame): Make sure to set top frame in all
cases.
This commit is contained in:
Gerd Möllmann 2025-01-23 11:07:13 +01:00
parent b1ec006e9f
commit 076cd69fc2

View file

@ -1808,6 +1808,11 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor
FrameRows (tty) = FRAME_TOTAL_LINES (f);
}
}
else
{
SET_FRAME_VISIBLE (f, true);
tty->top_frame = frame;
}
}
sf->select_mini_window_flag = MINI_WINDOW_P (XWINDOW (sf->selected_window));