diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-18 21:26:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-18 21:26:44 +0000 |
commit | 9690d9d5f112a5be9df5b6c2b4e0231f026f3f6a (patch) | |
tree | ec6ec8c43a7e9a7ff9d277501ed656a56e52da2d /server-msg.c | |
parent | ac8ae1250af06783c16ba8b05737fe275e7d1bed (diff) | |
download | rtmux-9690d9d5f112a5be9df5b6c2b4e0231f026f3f6a.tar.gz rtmux-9690d9d5f112a5be9df5b6c2b4e0231f026f3f6a.tar.bz2 rtmux-9690d9d5f112a5be9df5b6c2b4e0231f026f3f6a.zip |
Reset tty saved data on resize.
Diffstat (limited to 'server-msg.c')
-rw-r--r-- | server-msg.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server-msg.c b/server-msg.c index a91c8397..57adc1b6 100644 --- a/server-msg.c +++ b/server-msg.c @@ -1,4 +1,4 @@ -/* $Id: server-msg.c,v 1.58 2009-01-18 12:09:42 nicm Exp $ */ +/* $Id: server-msg.c,v 1.59 2009-01-18 21:26:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -225,7 +225,12 @@ server_msg_fn_resize(struct hdr *hdr, struct client *c) c->sy = data.sy; if (c->sy == 0) c->sy = 25; - + + c->tty.cx = UINT_MAX; + c->tty.cy = UINT_MAX; + c->tty.rupper = UINT_MAX; + c->tty.rlower = UINT_MAX; + recalculate_sizes(); /* Always redraw this client. */ |