summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-11 14:32:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-11 14:32:57 +0000
commitd44b803c3cb14d6ea94b90fc6c9f74e05854062a (patch)
tree2d4e80b3f492ce057d50601b7b3e7a30945cec23 /src
parent897a1ffa86f0d7b7762c83208052a9b3396e4950 (diff)
downloadirssi-d44b803c3cb14d6ea94b90fc6c9f74e05854062a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/window-items.c4
1 files 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;