summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-12-06 12:36:41 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-12-06 12:36:41 +0000
commitfe9b63ef654e30ee7dc6b90f5fd94933dbc31a1c (patch)
tree942fbc7839ff7664f7dd4d91d1a0d2cc5611e897 /src/fe-text/mainwindows.c
parenta644a200c1e97f4415a8d220572555e32d74689e (diff)
downloadirssi-fe9b63ef654e30ee7dc6b90f5fd94933dbc31a1c.zip
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
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r--src/fe-text/mainwindows.c2
1 files changed, 2 insertions, 0 deletions
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) {