diff options
author | Timo Sirainen <cras@irssi.org> | 2000-11-09 20:38:04 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-11-09 20:38:04 +0000 |
commit | b3b1438d22a437d472107957db8ac0a949c52d58 (patch) | |
tree | 3239196e7dc5819feeccd5c6420a9140cc7223c5 /src/fe-common | |
parent | d49248c7fe1ca4e595505f3352ca9c6dd9d0d31c (diff) | |
download | irssi-b3b1438d22a437d472107957db8ac0a949c52d58.zip |
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
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/window-items.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c index 52065d86..f94bcc8c 100644 --- a/src/fe-common/core/window-items.c +++ b/src/fe-common/core/window-items.c @@ -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; } |