summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-18 02:22:09 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-18 02:22:09 +0000
commitf41efd9d89f6596a4dc0600fd23ba56d69d1c47c (patch)
tree1e8f253fe22ffc27d7c385849c85a3969dbec881 /cmd-new-session.c
parentba7278373d4532e7cba530fcb025689ede6aeda3 (diff)
Sync OpenBSD patchset 1069:
Add notify hooks for various events, the functions are currently empty stubs but will be filled in for control mode later. From George Nachman.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 3604bdbb..e0c3b64d 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -244,6 +244,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
if (old_s != NULL)
ctx->cmdclient->last_session = old_s;
ctx->cmdclient->session = s;
+ notify_attached_session_changed(ctx->cmdclient);
session_update_activity(s);
server_redraw_client(ctx->cmdclient);
} else {
@@ -251,6 +252,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
if (old_s != NULL)
ctx->curclient->last_session = old_s;
ctx->curclient->session = s;
+ notify_attached_session_changed(ctx->curclient);
session_update_activity(s);
server_redraw_client(ctx->curclient);
}