From d44b803c3cb14d6ea94b90fc6c9f74e05854062a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 11 May 2001 14:32:57 +0000 Subject: [PATCH] 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 --- src/fe-common/core/window-items.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c index 1246f2d8..d7726521 100644 --- a/src/fe-common/core/window-items.c +++ b/src/fe-common/core/window-items.c @@ -267,7 +267,7 @@ void window_item_create(WI_ITEM_REC *item, int automatic) /* use this window IF: - reuse_unused_windows is ON - window has no existing items - - window has no level + - window has no name - window has no sticky binds (/LAYOUT SAVEd) - we already haven't found "good enough" window, except if @@ -276,7 +276,7 @@ void window_item_create(WI_ITEM_REC *item, int automatic) one doesn't */ 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->bound_items != NULL)) window = rec;