diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-21 12:44:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-21 12:44:06 +0000 |
commit | f5f04a9344df329459b48904f20601e3b0013a7c (patch) | |
tree | 8e76cc171e5a4f490d62a90d5bcbc1837e4335b9 /session.c | |
parent | 7398241e58c869ec04b5bf94db6bf915c77bc703 (diff) | |
download | rtmux-f5f04a9344df329459b48904f20601e3b0013a7c.tar.gz rtmux-f5f04a9344df329459b48904f20601e3b0013a7c.tar.bz2 rtmux-f5f04a9344df329459b48904f20601e3b0013a7c.zip |
* New session flag "set-remain-on-exit" to set remain-on-exit flag for new windows created in that session (like "remain-by-default" used to do). Not perfectly happy about this, but until I can think of a good way to introduce it generically (maybe a set of options in the session) this will do. Fixes SF request 2527847.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: session.c,v 1.54 2009-03-07 10:11:20 nicm Exp $ */ +/* $Id: session.c,v 1.55 2009-03-21 12:44:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -210,6 +210,9 @@ session_new(struct session *s, if (w == NULL) return (NULL); + if (options_get_number(&s->options, "set-remain-on-exit")) + options_set_number(&w->options, "remain-on-exit", 1); + return (session_attach(s, w, idx, cause)); } |