(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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user