summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-14 12:39:35 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-14 12:39:35 +0000
commitaea2e737f96078337567f1e16ec087a0ef55a054 (patch)
tree5025186c90016c2c73e5c678740f73e57fd32689 /src/fe-common
parentca1bb6a8ed0e763c7125bb27657b64b780da3caf (diff)
downloadirssi-aea2e737f96078337567f1e16ec087a0ef55a054.zip
Make /layout reset take effect immediately.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4765 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/windows-layout.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c
index 882e8539..4db60431 100644
--- a/src/fe-common/core/windows-layout.c
+++ b/src/fe-common/core/windows-layout.c
@@ -240,6 +240,14 @@ void windows_layout_save(void)
void windows_layout_reset(void)
{
+ GSList *tmp;
+
+ for (tmp = windows; tmp != NULL; tmp = tmp->next) {
+ WINDOW_REC *window = tmp->data;
+ while (window->bound_items != NULL)
+ window_bind_destroy(window, window->bound_items->data);
+ }
+
iconfig_set_str(NULL, "windows", NULL);
signal_emit("layout reset", 0);