aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-09-21 18:00:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-09-21 18:00:58 +0000
commit24b978adb770b4b0b6f85b8bac963d5255d55c03 (patch)
tree319e06ac455bb38aa6861e97ba79e61b72d45b49 /screen.c
parent8ac1d46f9bc7e02c8d5a39cb1da512259fc909b5 (diff)
downloadrtmux-24b978adb770b4b0b6f85b8bac963d5255d55c03.tar.gz
rtmux-24b978adb770b4b0b6f85b8bac963d5255d55c03.tar.bz2
rtmux-24b978adb770b4b0b6f85b8bac963d5255d55c03.zip
Don't resize unless size changed.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 9be8d344..7ca722bb 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.9 2007-08-28 09:26:07 nicm Exp $ */
+/* $Id: screen.c,v 1.10 2007-09-21 18:00:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -100,6 +100,9 @@ screen_resize(struct screen *s, u_int sx, u_int sy)
{
u_int i, ox, oy, ny;
+ if (sx == s->sx || sy == s->sy)
+ return;
+
if (sx < 1)
sx = 1;
if (sy < 1)