summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-19 08:17:11 +0000
committernicm <nicm>2016-10-19 08:17:11 +0000
commitbc27451e156c0a4af73d016ea04827710ea70d5b (patch)
tree0903c496d6b0c71219a78b111d93c47c6957fcab /cmd-new-session.c
parente0e9a54a325da2f5648fdb6f429f22a6c12a5fb3 (diff)
Move session-create hook out of session_create so it works with grouped sessions.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c1
1 files changed, 1 insertions, 0 deletions
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