diff src/device-tty.c @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents 9ee227acff29
children 43dd3413c7c7
line wrap: on
line diff
--- a/src/device-tty.c	Mon Aug 13 09:35:15 2007 +0200
+++ b/src/device-tty.c	Mon Aug 13 09:36:16 2007 +0200
@@ -146,7 +146,9 @@
 	continue;
 
       get_tty_device_size (d, &width, &height);
-      if (width > 0 && height > 0)
+      if (width > 0 && height > 0
+	  && (CONSOLE_TTY_DATA (con)->width != width
+	      || CONSOLE_TTY_DATA (con)->height != height))
 	{
 	  CONSOLE_TTY_DATA (con)->width = width;
 	  CONSOLE_TTY_DATA (con)->height = height;