summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-03-09 17:06:36 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-03-09 17:06:36 +0000
commite526a0dde60324a759687ac2097e9bceba101412 (patch)
tree4cca925d1c536fed8697301ded1e09504a56d9ab /usr.bin/tmux/server-fn.c
parentd5cffd6633270052181503e5a2e5b9a10bde251e (diff)
Move the client identify (display-panes) code into server-client.c.
Diffstat (limited to 'usr.bin/tmux/server-fn.c')
-rw-r--r--usr.bin/tmux/server-fn.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c
index f5957119c8f..9808851a082 100644
--- a/usr.bin/tmux/server-fn.c
+++ b/usr.bin/tmux/server-fn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-fn.c,v 1.105 2017/03/09 17:02:38 nicm Exp $ */
+/* $OpenBSD: server-fn.c,v 1.106 2017/03/09 17:06:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -29,7 +29,6 @@
#include "tmux.h"
static struct session *server_next_session(struct session *);
-static void server_callback_identify(int, short, void *);
static void server_destroy_session_group(struct session *);
void
@@ -405,46 +404,6 @@ server_check_unattached(void)
}
}
-void
-server_set_identify(struct client *c)
-{
- 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_callback_identify, c);
- evtimer_add(&c->identify_timer, &tv);
-
- c->flags |= CLIENT_IDENTIFY;
- c->tty.flags |= (TTY_FREEZE|TTY_NOCURSOR);
- server_redraw_client(c);
-}
-
-void
-server_clear_identify(struct client *c, struct window_pane *wp)
-{
- if (~c->flags & CLIENT_IDENTIFY)
- return;
- c->flags &= ~CLIENT_IDENTIFY;
-
- if (c->identify_callback != NULL)
- c->identify_callback(c, wp);
-
- c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
- server_redraw_client(c);
-}
-
-static void
-server_callback_identify(__unused int fd, __unused short events, void *data)
-{
- server_clear_identify(data, NULL);
-}
-
/* Set stdin callback. */
int
server_set_stdin_callback(struct client *c, void (*cb)(struct client *, int,