Commit 570d22b0 authored by Jason Rumney's avatar Jason Rumney

(compute_tip_xy): Initialize root_x and root_y from

mouse position if either left or top is not specified.
parent bfd6edcc
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment