Restore the behaviour of active_window to go to the window with most recent activity

between the ones with highest data level, and make actlist_sort = level match this 
ordering.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4798 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-04-05 14:09:01 +00:00 committed by exg
commit c280030608
2 changed files with 4 additions and 8 deletions

View file

@ -154,8 +154,7 @@ static void item_act(SBAR_ITEM_REC *item, int get_size_only)
static int window_level_cmp(WINDOW_REC *w1, WINDOW_REC *w2)
{
if (w1->data_level > w2->data_level ||
(w1->data_level == w2->data_level && w1->refnum < w2->refnum))
if (w1->data_level >= w2->data_level)
return -1;
else
return 1;