diff options
| author | Jason Rumney | 2001-11-24 17:48:40 +0000 |
|---|---|---|
| committer | Jason Rumney | 2001-11-24 17:48:40 +0000 |
| commit | 570d22b035a3da4e34f8a6445d83aa4e929dcc9b (patch) | |
| tree | e494ce3a7f31d550374fa1f881ede883aa85b6ce /src/xfns.c | |
| parent | bfd6edcc91305499f20688d0255955804e03f5a5 (diff) | |
| download | emacs-570d22b035a3da4e34f8a6445d83aa4e929dcc9b.tar.gz emacs-570d22b035a3da4e34f8a6445d83aa4e929dcc9b.zip | |
(compute_tip_xy): Initialize root_x and root_y from
mouse position if either left or top is not specified.
Diffstat (limited to 'src/xfns.c')
| -rw-r--r-- | src/xfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 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, |