From 17fde823a88897e375735065a05fa1f8943df0bc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 20 Jun 2008 06:36:01 +0000 Subject: Freeze output when showing display line, fixes problems when no status line. --- server.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server.c') diff --git a/server.c b/server.c index 75727904..d7e218f8 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.72 2008-06-19 23:24:40 nicm Exp $ */ +/* $Id: server.c,v 1.73 2008-06-20 06:36:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -304,11 +304,15 @@ server_check_redraw(struct client *c) struct screen screen; u_int xx, yy, sx, sy; char title[BUFSIZ]; + int flags; if (c == NULL || c->session == NULL) return; s = c->session; + flags = c->tty.flags & TTY_FREEZE; + c->tty.flags &= ~TTY_FREEZE; + if (options_get_number(&s->options, "set-titles")) { xsnprintf(title, sizeof title, "%s:%u:%s - \"%s\"", s->name, s->curw->idx, @@ -363,6 +367,8 @@ server_check_redraw(struct client *c) status_redraw(c); } + c->tty.flags |= flags; + c->flags &= ~(CLIENT_REDRAW|CLIENT_STATUS); } -- cgit