mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -368,6 +368,8 @@ static void mainwindows_resize_smaller(int xdiff, int ydiff)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
rec = sorted->data;
|
rec = sorted->data;
|
||||||
|
if (rec == active_mainwin && sorted->next != NULL)
|
||||||
|
rec = sorted->next->data;
|
||||||
sorted = g_slist_remove(sorted, rec);
|
sorted = g_slist_remove(sorted, rec);
|
||||||
|
|
||||||
if (sorted != NULL) {
|
if (sorted != NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue