Support for "immortal" windows, that can't be closed until explicitly set to

mortal with /WINDOW IMMORTAL OFF. Status and msgs windows are immortal by
default.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2422 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-10 14:59:36 +00:00 committed by cras
commit 9bb16705a5
7 changed files with 69 additions and 7 deletions

View file

@ -31,6 +31,7 @@ struct _WINDOW_REC {
int level; /* message level */
GSList *bound_items; /* list of WINDOW_BIND_RECs */
unsigned int immortal:1;
unsigned int sticky_refnum:1;
unsigned int destroying:1;
@ -65,6 +66,7 @@ void window_set_refnum(WINDOW_REC *window, int refnum);
void window_set_name(WINDOW_REC *window, const char *name);
void window_set_history(WINDOW_REC *window, const char *name);
void window_set_level(WINDOW_REC *window, int level);
void window_set_immortal(WINDOW_REC *window, int immortal);
/* return active item's name, or if none is active, window's name */
char *window_get_active_name(WINDOW_REC *window);