summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows-layout.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-09-09 12:20:17 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-09-09 12:20:17 +0000
commitbe6cf00ebb382bb4055f1069939328a560df517a (patch)
tree3c2ad80f6038b7d0bb4dfe186c7790bfa903ac0a /src/fe-text/mainwindows-layout.c
parent8e3005a1c1b6e9674208d01662b89cc3e1ffa4f9 (diff)
downloadirssi-be6cf00ebb382bb4055f1069939328a560df517a.zip
Restoring split windows layout didn't work properly (didn't I already commit
this days ago?) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1781 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows-layout.c')
-rw-r--r--src/fe-text/mainwindows-layout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-text/mainwindows-layout.c b/src/fe-text/mainwindows-layout.c
index b92fe108..78eebef3 100644
--- a/src/fe-text/mainwindows-layout.c
+++ b/src/fe-text/mainwindows-layout.c
@@ -128,12 +128,16 @@ static void sig_layout_restore(void)
/* create a new window + mainwindow */
signal_emit("gui window create override", 1,
GINT_TO_POINTER(0));
+
window = window_create(NULL, TRUE);
window_set_refnum(window, atoi(node->key));
if (lower_size > 0)
mainwindow_set_size(lower_window, lower_size);
+ window_set_active(window);
+ active_mainwin = WINDOW_MAIN(window);
+
lower_window = WINDOW_MAIN(window);
lower_size = config_node_get_int(node, "lines", 0);
}