aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-04 10:01:25 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-04 10:01:25 +0100
commit4b88872c85835fc11210eed5e6f2291d3736b478 (patch)
treee0f225f264123cc7c06e079370a0facce5107c0e
parentc063831df5db1d3789edd8ade4e8c370390c93de (diff)
parent42490f4750bb6f39c08908e8e7a3b85022a077af (diff)
downloadrtmux-4b88872c85835fc11210eed5e6f2291d3736b478.tar.gz
rtmux-4b88872c85835fc11210eed5e6f2291d3736b478.tar.bz2
rtmux-4b88872c85835fc11210eed5e6f2291d3736b478.zip
Merge branch 'obsd-master' into master
-rw-r--r--options-table.c1
-rw-r--r--server-client.c2
-rw-r--r--tmux.12
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);
}
/*
diff --git a/tmux.1 b/tmux.1
index c96ba532..3f9589ae 100644
--- a/tmux.1
+++ b/tmux.1
@@ -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