mirror of
https://github.com/tmux/tmux.git
synced 2025-01-06 07:48:48 +00:00
Add a client-active hook, from ncfavier in GitHub issue 2803.
This commit is contained in:
parent
e37aa45681
commit
42490f4750
@ -1145,6 +1145,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", ""),
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user