New option, detach-on-destroy, to set what happens to a client when the session

it is attached to is destroyed. If on (the default), it is detached; if off, it
is switched to the most recently active session.
This commit is contained in:
Nicholas Marriott
2010-06-27 00:22:22 +00:00
parent 34464da8d3
commit 26524c99f6
4 changed files with 41 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ const struct set_option_entry set_session_option_table[] = {
{ "default-path", SET_OPTION_STRING, 0, 0, NULL },
{ "default-shell", SET_OPTION_STRING, 0, 0, NULL },
{ "default-terminal", SET_OPTION_STRING, 0, 0, NULL },
{ "detach-on-destroy", SET_OPTION_FLAG, 0, 0, NULL },
{ "display-panes-colour", SET_OPTION_COLOUR, 0, 0, NULL },
{ "display-panes-active-colour", SET_OPTION_COLOUR, 0, 0, NULL },
{ "display-panes-time", SET_OPTION_NUMBER, 1, INT_MAX, NULL },