diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-07-08 21:51:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-07-08 21:51:40 +0000 |
commit | d5269a2eedecc57b3ead2e502a729821aa7e2c3c (patch) | |
tree | 9db8c3e6465c85cb5eb0bd13ce557df2badd65a3 /screen-redraw.c | |
parent | a8e9654b65c7b6de5240f9df23f0d12bca8e02ec (diff) | |
download | rtmux-d5269a2eedecc57b3ead2e502a729821aa7e2c3c.tar.gz rtmux-d5269a2eedecc57b3ead2e502a729821aa7e2c3c.tar.bz2 rtmux-d5269a2eedecc57b3ead2e502a729821aa7e2c3c.zip |
Do not continue to send data to suspended/locked clients or there will
be a huge rush of it after they are resumed/unlocked. The main output
path was fine but status line updates and the terminal state reset code
were missed.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 2024e675..1abd719c 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -176,6 +176,10 @@ screen_redraw_screen(struct client *c, int status_only, int borders_only) u_int i, j, type; int status, fg, bg; + /* Suspended clients should not be updated. */ + if (c->flags & CLIENT_SUSPENDED) + return; + /* Get status line, er, status. */ if (c->message_string != NULL || c->prompt_string != NULL) status = 1; |