From 54a933f29c15abb2d0681d4bc490f4cdf7af0f2d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 7 Dec 2001 23:26:46 +0000 Subject: [PATCH] Small focus bugfix when closing a split window. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2220 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index eab07289..14af4048 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -152,7 +152,7 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin, for (tmp = windows; tmp != NULL; tmp = tmp->next) { WINDOW_REC *rec = tmp->data; - if (rec != skip_window && WINDOW_MAIN(rec) == mainwin) { + if (rec != skip_window && WINDOW_MAIN(rec) != mainwin) { window_set_active(rec); break; }