default:
break;
}
+
+ tui_delete_invisible_windows ();
}
}
/* Answer the height of a window. If it hasn't been created yet,
answer what the height of a window would be based upon its type and
the layout. */
-int
+static int
tui_default_win_height (enum tui_win_type type,
enum tui_layout_type layout)
{
struct tui_locator_window *locator = tui_locator_win_info_ptr ();
gdb_assert (locator != nullptr);
- tui_show_source_content (TUI_SRC_WIN);
+ TUI_SRC_WIN->show_source_content ();
if (TUI_DISASM_WIN == NULL)
tui_win_list[DISASSEM_WIN] = new tui_disasm_window ();
TUI_DISASM_WIN->reset (asm_height,
TUI_DISASM_WIN->m_has_locator = true;
locator->make_visible (true);
tui_show_locator_content ();
- tui_show_source_content (TUI_DISASM_WIN);
+ TUI_DISASM_WIN->show_source_content ();
if (TUI_CMD_WIN == NULL)
tui_win_list[CMD_WIN] = new tui_cmd_window ();
tui_term_height () - cmd_height);
/* FIXME tui_cmd_window won't recreate the handle on
make_visible, so we need this instead. */
- tui_make_window (TUI_CMD_WIN, DONT_BOX_WINDOW);
+ tui_make_window (TUI_CMD_WIN);
current_layout = SRC_DISASSEM_COMMAND;
}
locator->make_visible (true);
tui_show_locator_content ();
tui_add_to_source_windows (base);
+ TUI_CMD_WIN->make_visible (true);
current_layout = new_layout;
}
win_info->m_has_locator = true;
locator->make_visible (true);
tui_show_locator_content ();
- tui_show_source_content (win_info);
+ win_info->show_source_content ();
if (TUI_CMD_WIN == NULL)
tui_win_list[CMD_WIN] = new tui_cmd_window ();
src_height);
/* FIXME tui_cmd_window won't recreate the handle on
make_visible, so we need this instead. */
- tui_make_window (TUI_CMD_WIN, DONT_BOX_WINDOW);
+ tui_make_window (TUI_CMD_WIN);
current_layout = layout_type;
}