]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTmouse_position): Fix tyypo.
authorDave Love <fx@gnu.org>
Mon, 5 Mar 2001 21:19:09 +0000 (21:19 +0000)
committerDave Love <fx@gnu.org>
Mon, 5 Mar 2001 21:19:09 +0000 (21:19 +0000)
src/xterm.c

index 8c2100cb8c44e990e3fd6b2e03adcc6d0bb9b662..ef4801fbb180075cbdcc5fc2def84dcf1e28f49f 100644 (file)
@@ -7641,7 +7641,7 @@ XTmouse_position (fp, insist, bar_window, part, x, y, time)
                   round down even for negative values.  */
                if (gx < 0)
                  gx -= width - 1;
-               if (y < 0)
+               if (gy < 0)
                  gy -= height - 1;
                gx = (gx + width - 1) / width * width;
                gy = (gy + height - 1) / height * height;