mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
when finding window for item, prefer empty windows that don't have
anything waiting channels list to those that have. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@818 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d49248c7fe
commit
b3b1438d22
@ -253,7 +253,8 @@ void window_item_create(WI_ITEM_REC *item, int automatic)
|
||||
|
||||
if (reuse_unused_windows &&
|
||||
rec->items == NULL && rec->level == 0 &&
|
||||
(window == NULL || rec == active_win)) {
|
||||
(window == NULL || rec == active_win ||
|
||||
window->waiting_channels == NULL)) {
|
||||
/* no items in this window, we should probably use it.. */
|
||||
window = rec;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user