Move session-create hook out of session_create so it works with grouped sessions.

pull/615/head
nicm 2016-10-19 08:17:11 +00:00
parent e0e9a54a32
commit bc27451e15
2 changed files with 1 additions and 1 deletions

View File

@ -267,6 +267,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
session_group_synchronize_to(s);
session_select(s, RB_MIN(winlinks, &s->windows)->idx);
}
notify_session("session-created", s);
/*
* Set the client to the new session. If a command client exists, it is

View File

@ -169,7 +169,6 @@ session_create(const char *name, int argc, char **argv, const char *path,
}
log_debug("session %s created", s->name);
notify_session("session-created", s);
return (s);
}