aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2005-12-02 18:32:46 +0000
committerEli Zaretskii <[email protected]>2005-12-02 18:32:46 +0000
commit5a98616edfc27abf7f6e8b835477fa818dd9bc41 (patch)
treef4b44db62434b9b83c3f7f89fe805462bd2d6ca1 /src
parented0e38790bd5fa58e7f21947c7de4e916826bdff (diff)
(compute_tip_xy): Put tip above pointer if it doesn't fit below.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32fns.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cadfad7c48..ee9eed6739 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-02 Eli Zaretskii <[email protected]>
+
+ * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
+ fit below.
+
2005-12-02 Jan Dj,Ad(Brv <[email protected]>
* xterm.h: Add prototype for xg_set_icon_from_xpm_data.
diff --git a/src/w32fns.c b/src/w32fns.c
index e18ee3d43a..6fc6c86080 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7413,6 +7413,9 @@ compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y)
*root_y = XINT (top);
else if (*root_y + XINT (dy) - height < 0)
*root_y -= XINT (dy);
+ /* If there's not enough place below the pointer, put tip above it. */
+ else if (*root_y + XINT (dy) >= FRAME_W32_DISPLAY_INFO (f)->height)
+ *root_y -= XINT (dy);
else
{
*root_y -= height;