diff options
author | 2017-08-16 12:12:54 +0000 | |
---|---|---|
committer | 2017-08-16 12:12:54 +0000 | |
commit | 3b2d01c064a55b6a704d663d8090ab4e1c456d54 (patch) | |
tree | 51ad3305bc3ac070ab93a8192acab096d0b83de8 /usr.bin/tmux/server-client.c | |
parent | Rename BELL_* values to ALERT_* now they are used by more than bells, (diff) | |
download | wireguard-openbsd-3b2d01c064a55b6a704d663d8090ab4e1c456d54.tar.xz wireguard-openbsd-3b2d01c064a55b6a704d663d8090ab4e1c456d54.zip |
Add -d flag to display-panes to specify timeout, and make 0 mean no
timeout. From Laurens Post.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 337f8b82e8c..10ce7534c83 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.241 2017/07/14 08:04:23 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.242 2017/08/16 12:12:54 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -74,19 +74,18 @@ server_client_callback_identify(__unused int fd, __unused short events, /* Set identify mode on client. */ void -server_client_set_identify(struct client *c) +server_client_set_identify(struct client *c, u_int delay) { struct timeval tv; - int delay; - delay = options_get_number(c->session->options, "display-panes-time"); tv.tv_sec = delay / 1000; tv.tv_usec = (delay % 1000) * 1000L; if (event_initialized(&c->identify_timer)) evtimer_del(&c->identify_timer); evtimer_set(&c->identify_timer, server_client_callback_identify, c); - evtimer_add(&c->identify_timer, &tv); + if (delay != 0) + evtimer_add(&c->identify_timer, &tv); c->flags |= CLIENT_IDENTIFY; c->tty.flags |= (TTY_FREEZE|TTY_NOCURSOR); |