summaryrefslogtreecommitdiffstats
path: root/cmd-attach-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-attach-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-attach-session.c')
-rw-r--r--cmd-attach-session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-attach-session.c b/cmd-attach-session.c
index b37b2813..54c4051f 100644
--- a/cmd-attach-session.c
+++ b/cmd-attach-session.c
@@ -74,6 +74,7 @@ cmd_attach_session_exec(struct cmd *self, struct cmd_ctx *ctx)
}
ctx->curclient->session = s;
+ notify_attached_session_changed(ctx->curclient);
session_update_activity(s);
server_redraw_client(ctx->curclient);
s->curw->flags &= ~WINLINK_ALERTFLAGS;
@@ -98,6 +99,7 @@ cmd_attach_session_exec(struct cmd *self, struct cmd_ctx *ctx)
server_write_session(s, MSG_DETACH, NULL, 0);
ctx->cmdclient->session = s;
+ notify_attached_session_changed(ctx->cmdclient);
session_update_activity(s);
server_write_client(ctx->cmdclient, MSG_READY, NULL, 0);