From bc27451e156c0a4af73d016ea04827710ea70d5b Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 19 Oct 2016 08:17:11 +0000 Subject: [PATCH] Move session-create hook out of session_create so it works with grouped sessions. --- cmd-new-session.c | 1 + session.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-new-session.c b/cmd-new-session.c index ca0a1c17..1de2eb69 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -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 diff --git a/session.c b/session.c index 8d42cb8c..fa43a74e 100644 --- a/session.c +++ b/session.c @@ -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); }