diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-09-03 09:32:38 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2012-09-04 22:36:47 +0100 |
commit | 41a448193f2cce87c9e7125f7a71e19acb928604 (patch) | |
tree | 9448f8a1988f10e76d6870acc9a8c61a45285306 /server-client.c | |
parent | 03045551849f139076e95fcdc71dc28dc8459db2 (diff) | |
download | rtmux-41a448193f2cce87c9e7125f7a71e19acb928604.tar.gz rtmux-41a448193f2cce87c9e7125f7a71e19acb928604.tar.bz2 rtmux-41a448193f2cce87c9e7125f7a71e19acb928604.zip |
Send notifications to control clients. Also don't redraw client when
suspended.
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c index 1f407e4f..c38d6d66 100644 --- a/server-client.c +++ b/server-client.c @@ -602,6 +602,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; @@ -899,6 +902,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; |