summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-09-03 09:32:38 +0000
committernicm <nicm@openbsd.org>2012-09-03 09:32:38 +0000
commitd5dd202353ce6d838055ef3507ac0c418378059e (patch)
tree83e4e2bf2dc4285449ae3464d48c55776ad71adf /usr.bin/tmux/server-client.c
parentChange format of choose-tree arrows slightly, from Romain Francoise. (diff)
downloadwireguard-openbsd-d5dd202353ce6d838055ef3507ac0c418378059e.tar.xz
wireguard-openbsd-d5dd202353ce6d838055ef3507ac0c418378059e.zip
Send notifications to control clients. Also don't redraw client when
suspended.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index ca937bd8549..16449d02f30 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.78 2012/07/11 07:10:15 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.79 2012/09/03 09:32:38 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -603,6 +603,9 @@ server_client_check_redraw(struct client *c)
struct window_pane *wp;
int flags, redraw;
+ if (c->flags & CLIENT_SUSPENDED)
+ return;
+
flags = c->tty.flags & TTY_FREEZE;
c->tty.flags &= ~TTY_FREEZE;
@@ -900,6 +903,7 @@ server_client_msg_identify(
if (data->flags & IDENTIFY_CONTROL) {
c->stdin_callback = control_callback;
c->flags |= (CLIENT_CONTROL|CLIENT_SUSPENDED);
+ server_write_client(c, MSG_STDIN, NULL, 0);
c->tty.fd = -1;
c->tty.log_fd = -1;