diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-08-04 08:07:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-08-04 08:07:20 +0000 |
commit | ed0c4e822a469867dcbbe280205ec4d50144ae4f (patch) | |
tree | dfdc4cded5dbdf607a1b6d339deeec22d68ca106 /usr.bin/tmux/server-client.c | |
parent | 281028c28e047542d772ccca8456dbcd65b776b9 (diff) |
Add a client-active hook, from ncfavier in GitHub issue 2803.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index a5604ab5171..949e25347f9 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.376 2021/07/21 08:06:36 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.377 2021/08/04 08:07:19 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1127,6 +1127,8 @@ server_client_update_latest(struct client *c) if (options_get_number(w->options, "window-size") == WINDOW_SIZE_LATEST) recalculate_size(w, 0); + + notify_client("client-active", c); } /* |