1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

/WINDOW SHOW didn't work properly

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1335 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-04 02:26:35 +00:00 committed by cras
parent 4c7b07ed3f
commit 160da45261

View File

@ -643,6 +643,7 @@ static void cmd_window_hide(const char *data)
/* SYNTAX: WINDOW SHOW <number>|<name> */
static void cmd_window_show(const char *data)
{
MAIN_WINDOW_REC *parent;
WINDOW_REC *window;
if (*data == '\0') cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS);
@ -666,8 +667,9 @@ static void cmd_window_show(const char *data)
return;
}
WINDOW_GUI(window)->parent = mainwindow_create();
WINDOW_GUI(window)->parent->active = window;
parent = mainwindow_create();
parent->active = window;
gui_window_reparent(window, parent);
active_mainwin = NULL;
window_set_active(window);