diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-16 22:06:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-16 22:06:41 +0000 |
commit | dd710358400562e21af7c99f0af8e30112a967f8 (patch) | |
tree | 6d1f0d78f02d2464887c89f626277be197e72f57 /usr.bin/tmux/cmd-attach-session.c | |
parent | 682bdbaa44332449efd70c28f021e0a61033aa50 (diff) |
Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
Diffstat (limited to 'usr.bin/tmux/cmd-attach-session.c')
-rw-r--r-- | usr.bin/tmux/cmd-attach-session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-attach-session.c b/usr.bin/tmux/cmd-attach-session.c index bef242dc9ef..3a6e24a1351 100644 --- a/usr.bin/tmux/cmd-attach-session.c +++ b/usr.bin/tmux/cmd-attach-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-attach-session.c,v 1.64 2016/10/16 19:04:05 nicm Exp $ */ +/* $OpenBSD: cmd-attach-session.c,v 1.65 2016/10/16 22:06:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -105,7 +105,7 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag, c->session = s; server_client_set_key_table(c, NULL); status_timer_start(c); - notify_attached_session_changed(c); + notify_client("client-session-changed", c); session_update_activity(s, NULL); gettimeofday(&s->last_attached_time, NULL); server_redraw_client(c); @@ -137,7 +137,7 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag, c->session = s; server_client_set_key_table(c, NULL); status_timer_start(c); - notify_attached_session_changed(c); + notify_client("client-session-changed", c); session_update_activity(s, NULL); gettimeofday(&s->last_attached_time, NULL); server_redraw_client(c); @@ -145,7 +145,7 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag, if (~c->flags & CLIENT_CONTROL) proc_send(c->peer, MSG_READY, -1, NULL, 0); - hooks_run(c->session->hooks, c, NULL, "client-attached"); + notify_client("client-attached", c); c->flags |= CLIENT_ATTACHED; } recalculate_sizes(); |