mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02: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:
parent
4c7b07ed3f
commit
160da45261
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue