summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-03 09:32:38 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-09-03 09:32:38 +0000
commit9247c90d69c3efeeda7c7baa5c1ff82fb09da836 (patch)
treed29d16aa0895c031fc4ddd2e4f457ea90c29ab12 /server-client.c
parenta679a4a7081b8efdf90445ad14e87f9c6b1fe964 (diff)
Send notifications to control clients. Also don't redraw client when
suspended.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 8ad996b0..7b7a3e4a 100644
--- a/server-client.c
+++ b/server-client.c
@@ -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;