diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-04 02:26:35 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-04 02:26:35 +0000 |
commit | 160da45261b1799278103f7a2904a3770cd8604c (patch) | |
tree | fba7a34b98a781e8484f3d9a59968087007bd87d /src/fe-text | |
parent | 4c7b07ed3fb03528d8f9b62297fd5d8df30929bf (diff) | |
download | irssi-160da45261b1799278103f7a2904a3770cd8604c.zip |
/WINDOW SHOW didn't work properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1335 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/mainwindows.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 61e1f71b..479df26b 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -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); |