# HG changeset patch # User Jason Rumney # Date 1006624120 0 # Node ID 4416668397d7ba9596d64818dbdbf0a3b29cd53b # Parent 96beda35d0fa73ca5a7ff6ef2dfefeaf3708dd7c (compute_tip_xy): Initialize root_x and root_y from mouse position if either left or top is not specified. diff -r 96beda35d0fa -r 4416668397d7 src/xfns.c --- a/src/xfns.c Sat Nov 24 17:39:31 2001 +0000 +++ b/src/xfns.c Sat Nov 24 17:48:40 2001 +0000 @@ -11077,7 +11077,7 @@ /* 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,