From: Jason Rumney Date: Sat, 24 Nov 2001 17:48:40 +0000 (+0000) Subject: (compute_tip_xy): Initialize root_x and root_y from X-Git-Tag: ttn-vms-21-2-B4~18228 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=570d22b035a3da4e34f8a6445d83aa4e929dcc9b;p=emacs.git (compute_tip_xy): Initialize root_x and root_y from mouse position if either left or top is not specified. --- diff --git a/src/xfns.c b/src/xfns.c index fe3667c8168..dd829dc4cb2 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -11077,7 +11077,7 @@ compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y) /* Move the tooltip window where the mouse pointer is. Resize and show it. */ - if (!INTEGERP (left) && !INTEGERP (top)) + if (!INTEGERP (left) || !INTEGERP (top)) { BLOCK_INPUT; XQueryPointer (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->root_window,