1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00

(compute_tip_xy): Initialize root_x and root_y from

mouse position if either left or top is not specified.
This commit is contained in:
Jason Rumney 2001-11-24 17:48:40 +00:00
parent bfd6edcc91
commit 570d22b035

View file

@ -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,