mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Windows' parent weren't saved (but was restored..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1711 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
45bb5c3cee
commit
1db558b8ea
@ -29,8 +29,14 @@
|
|||||||
|
|
||||||
static void sig_window_save(WINDOW_REC *window, CONFIG_NODE *node)
|
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);
|
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)
|
static void sig_window_restore(WINDOW_REC *window, CONFIG_NODE *node)
|
||||||
|
Loading…
Reference in New Issue
Block a user