diff options
-rw-r--r-- | src/fe-common/core/windows.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/windows.c b/src/fe-common/core/windows.c index b3c1b995..ba92ffd2 100644 --- a/src/fe-common/core/windows.c +++ b/src/fe-common/core/windows.c @@ -121,8 +121,10 @@ void window_destroy(WINDOW_REC *window) g_free_not_null(window->name); g_free(window); - if (active_win == window && windows != NULL) + if (active_win == window && windows != NULL) { + active_win = NULL; /* it's corrupted */ window_set_active(windows->data); + } windows_pack(refnum); } |