diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-07 15:16:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-07 15:16:26 +0000 |
commit | 1db558b8ea0f283d63567ee17a625fd5cf6a08a1 (patch) | |
tree | 1bfc02b54f72340cf22c55f5107fc49a0e3e2bb9 /src/fe-text | |
parent | 45bb5c3ceed83ef937a373413ac7921b6b050682 (diff) | |
download | irssi-1db558b8ea0f283d63567ee17a625fd5cf6a08a1.zip |
Windows' parent weren't saved (but was restored..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1711 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/mainwindows-layout.c | 8 |
1 files changed, 7 insertions, 1 deletions
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) |