comparison 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
comparison
equal deleted inserted replaced
41448:96beda35d0fa 41449:4416668397d7
11075 left = Fcdr (Fassq (Qleft, parms)); 11075 left = Fcdr (Fassq (Qleft, parms));
11076 top = Fcdr (Fassq (Qtop, parms)); 11076 top = Fcdr (Fassq (Qtop, parms));
11077 11077
11078 /* Move the tooltip window where the mouse pointer is. Resize and 11078 /* Move the tooltip window where the mouse pointer is. Resize and
11079 show it. */ 11079 show it. */
11080 if (!INTEGERP (left) && !INTEGERP (top)) 11080 if (!INTEGERP (left) || !INTEGERP (top))
11081 { 11081 {
11082 BLOCK_INPUT; 11082 BLOCK_INPUT;
11083 XQueryPointer (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->root_window, 11083 XQueryPointer (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->root_window,
11084 &root, &child, root_x, root_y, &win_x, &win_y, &pmask); 11084 &root, &child, root_x, root_y, &win_x, &win_y, &pmask);
11085 UNBLOCK_INPUT; 11085 UNBLOCK_INPUT;