diff src/xfns.c @ 41449:4416668397d7

(compute_tip_xy): Initialize root_x and root_y from mouse position if either left or top is not specified.
author Jason Rumney <jasonr@gnu.org>
date Sat, 24 Nov 2001 17:48:40 +0000
parents 2203939cc090
children fd499c5c75d2
line wrap: on
line diff
--- 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,