diff options
-rw-r--r-- | options-table.c | 1 | ||||
-rw-r--r-- | server-client.c | 2 | ||||
-rw-r--r-- | tmux.1 | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/options-table.c b/options-table.c index 6244fb3a..674c96f1 100644 --- a/options-table.c +++ b/options-table.c @@ -1144,6 +1144,7 @@ const struct options_table_entry options_table[] = { OPTIONS_TABLE_HOOK("alert-activity", ""), OPTIONS_TABLE_HOOK("alert-bell", ""), OPTIONS_TABLE_HOOK("alert-silence", ""), + OPTIONS_TABLE_HOOK("client-active", ""), OPTIONS_TABLE_HOOK("client-attached", ""), OPTIONS_TABLE_HOOK("client-detached", ""), OPTIONS_TABLE_HOOK("client-resized", ""), diff --git a/server-client.c b/server-client.c index 15d86077..a0878adb 100644 --- a/server-client.c +++ b/server-client.c @@ -1124,6 +1124,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); } /* @@ -4396,6 +4396,8 @@ See Run when a window has been silent. See .Ic monitor-silence . +.It client-active +Run when a client becomes the latest active client of its session. .It client-attached Run when a client is attached. .It client-detached |