1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Don't place any window items to windows which have name. Window level

doesn't have any effect to it anymore.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1481 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-11 14:32:57 +00:00 committed by cras
parent 897a1ffa86
commit d44b803c3c

View File

@ -267,7 +267,7 @@ void window_item_create(WI_ITEM_REC *item, int automatic)
/* use this window IF: /* use this window IF:
- reuse_unused_windows is ON - reuse_unused_windows is ON
- window has no existing items - window has no existing items
- window has no level - window has no name
- window has no sticky binds (/LAYOUT SAVEd) - window has no sticky binds (/LAYOUT SAVEd)
- we already haven't found "good enough" window, - we already haven't found "good enough" window,
except if except if
@ -276,7 +276,7 @@ void window_item_create(WI_ITEM_REC *item, int automatic)
one doesn't one doesn't
*/ */
if (reuse_unused_windows && rec->items == NULL && if (reuse_unused_windows && rec->items == NULL &&
rec->level == 0 && !window_bind_has_sticky(rec) && rec->name == NULL && !window_bind_has_sticky(rec) &&
(window == NULL || rec == active_win || (window == NULL || rec == active_win ||
window->bound_items != NULL)) window->bound_items != NULL))
window = rec; window = rec;