mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05: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:
parent
a644a200c1
commit
fe9b63ef65
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user