diff src/os_unix.c @ 1510:56fb4ab9f62f v7.1.225

updated for version 7.1-225
author vimboss
date Sun, 13 Jan 2008 15:31:00 +0000
parents c89903e16772
children f0d6b2bb1093
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6145,9 +6145,9 @@ do_xterm_trace()
     if (xterm_trace == 1)
     {
 	/* Get the hints just before tracking starts.  The font size might
-	 * have changed recently */
-	XGetWMNormalHints(xterm_dpy, x11_window, &xterm_hints, &got_hints);
-	if (!(got_hints & PResizeInc)
+	 * have changed recently. */
+	if (!XGetWMNormalHints(xterm_dpy, x11_window, &xterm_hints, &got_hints)
+		|| !(got_hints & PResizeInc)
 		|| xterm_hints.width_inc <= 1
 		|| xterm_hints.height_inc <= 1)
 	{