From fe9b63ef654e30ee7dc6b90f5fd94933dbc31a1c Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sat, 6 Dec 2008 12:36:41 +0000 Subject: [PATCH] Always preserve the active mainwindow in mainwindows_resize_smaller, prompted by report by Henri Kemppainen. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4947 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index fa1bb330..c8b3a3a0 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -368,6 +368,8 @@ static void mainwindows_resize_smaller(int xdiff, int ydiff) break; rec = sorted->data; + if (rec == active_mainwin && sorted->next != NULL) + rec = sorted->next->data; sorted = g_slist_remove(sorted, rec); if (sorted != NULL) {