[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xfns.c
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] Changes to emacs/src/xfns.c |
Date: |
Wed, 14 Dec 2005 20:58:34 +0000 |
Index: emacs/src/xfns.c
diff -u emacs/src/xfns.c:1.651 emacs/src/xfns.c:1.652
--- emacs/src/xfns.c:1.651 Mon Dec 12 09:32:40 2005
+++ emacs/src/xfns.c Wed Dec 14 20:58:33 2005
@@ -4940,6 +4940,8 @@
if (INTEGERP (top))
*root_y = XINT (top);
+ else if (*root_y + XINT (dy) <= 0)
+ *root_y = 0; /* Can happen for negative dy */
else if (*root_y + XINT (dy) + height <= FRAME_X_DISPLAY_INFO (f)->height)
/* It fits below the pointer */
*root_y += XINT (dy);
@@ -4952,6 +4954,8 @@
if (INTEGERP (left))
*root_x = XINT (left);
+ else if (*root_x + XINT (dx) <= 0)
+ *root_x = 0; /* Can happen for negative dx */
else if (*root_x + XINT (dx) + width <= FRAME_X_DISPLAY_INFO (f)->width)
/* It fits to the right of the pointer. */
*root_x += XINT (dx);
- [Emacs-diffs] Changes to emacs/src/xfns.c, Jan Djärv, 2005/12/02
- [Emacs-diffs] Changes to emacs/src/xfns.c, Karoly Lorentey, 2005/12/07
- [Emacs-diffs] Changes to emacs/src/xfns.c, Richard M . Stallman, 2005/12/08
- [Emacs-diffs] Changes to emacs/src/xfns.c, Richard M . Stallman, 2005/12/09
- [Emacs-diffs] Changes to emacs/src/xfns.c, Jan Djärv, 2005/12/12
- [Emacs-diffs] Changes to emacs/src/xfns.c,
Jan Djärv <=
- [Emacs-diffs] Changes to emacs/src/xfns.c, Dan Nicolaescu, 2005/12/18
- [Emacs-diffs] Changes to emacs/src/xfns.c, Jan Djärv, 2005/12/23
- [Emacs-diffs] Changes to emacs/src/xfns.c, Jan Djärv, 2005/12/27