1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

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
This commit is contained in:
Emanuele Giaquinta 2008-12-06 12:36:41 +00:00 committed by exg
parent a644a200c1
commit fe9b63ef65

View File

@ -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) {