diff options
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r-- | src/fe-text/gui-windows.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 999095c8..31fcc646 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -103,11 +103,14 @@ static void gui_window_destroyed(WINDOW_REC *window) signal_emit("gui window destroyed", 1, window); + parent->sticky_windows = + g_slist_remove(parent->sticky_windows, window); + gui_window_deinit(gui); window->gui_data = NULL; - if (parent->active == window && mainwindows->next != NULL) - mainwindow_destroy(parent); + if (parent->active == window) + mainwindow_change_active(parent, window); } void gui_window_resize(WINDOW_REC *window, int width, int height) |