From 570d22b035a3da4e34f8a6445d83aa4e929dcc9b Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 24 Nov 2001 17:48:40 +0000 Subject: [PATCH] (compute_tip_xy): Initialize root_x and root_y from mouse position if either left or top is not specified. --- src/xfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xfns.c b/src/xfns.c index fe3667c8168..dd829dc4cb2 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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, -- 2.39.5