diff options
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/windows-layout.c | 8 |
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); |