From 1db558b8ea0f283d63567ee17a625fd5cf6a08a1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 7 Aug 2001 15:16:26 +0000 Subject: [PATCH] Windows' parent weren't saved (but was restored..) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1711 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows-layout.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fe-text/mainwindows-layout.c b/src/fe-text/mainwindows-layout.c index 1657c9e6..5bcd854d 100644 --- a/src/fe-text/mainwindows-layout.c +++ b/src/fe-text/mainwindows-layout.c @@ -29,8 +29,14 @@ static void sig_window_save(WINDOW_REC *window, CONFIG_NODE *node) { - if (WINDOW_GUI(window)->sticky) + WINDOW_REC *active; + + if (WINDOW_GUI(window)->sticky) { iconfig_node_set_bool(node, "sticky", TRUE); + active = WINDOW_MAIN(window)->active; + if (window != active) + iconfig_node_set_int(node, "parent", active->refnum); + } } static void sig_window_restore(WINDOW_REC *window, CONFIG_NODE *node)