diff options
author | 2016-10-16 22:06:40 +0000 | |
---|---|---|
committer | 2016-10-16 22:06:40 +0000 | |
commit | 2ae124fe486d7811b42e2daedf9d60322f1794d3 (patch) | |
tree | 3ba6edb7f45cafe7d15054b1d759a9425c8b0468 /usr.bin/tmux/cmd-attach-session.c | |
parent | Use closefrom(4) in privsep parent and avoid some global file (diff) | |
download | wireguard-openbsd-2ae124fe486d7811b42e2daedf9d60322f1794d3.tar.xz wireguard-openbsd-2ae124fe486d7811b42e2daedf9d60322f1794d3.zip |
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(); |