mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -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:
parent
4c7b07ed3f
commit
160da45261
@ -643,6 +643,7 @@ static void cmd_window_hide(const char *data)
|
|||||||
/* SYNTAX: WINDOW SHOW <number>|<name> */
|
/* SYNTAX: WINDOW SHOW <number>|<name> */
|
||||||
static void cmd_window_show(const char *data)
|
static void cmd_window_show(const char *data)
|
||||||
{
|
{
|
||||||
|
MAIN_WINDOW_REC *parent;
|
||||||
WINDOW_REC *window;
|
WINDOW_REC *window;
|
||||||
|
|
||||||
if (*data == '\0') cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS);
|
if (*data == '\0') cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||||
@ -666,8 +667,9 @@ static void cmd_window_show(const char *data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
WINDOW_GUI(window)->parent = mainwindow_create();
|
parent = mainwindow_create();
|
||||||
WINDOW_GUI(window)->parent->active = window;
|
parent->active = window;
|
||||||
|
gui_window_reparent(window, parent);
|
||||||
|
|
||||||
active_mainwin = NULL;
|
active_mainwin = NULL;
|
||||||
window_set_active(window);
|
window_set_active(window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user