diff options
Diffstat (limited to 'src/w32fns.c')
-rw-r--r-- | src/w32fns.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |