[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#5703: 23.1.92; `x-show-tip' and `tooltip-frame-parameters' do no
Re: bug#5703: 23.1.92; `x-show-tip' and `tooltip-frame-parameters' do not respect `left' and `top'
Tue, 30 Mar 2010 22:41:11 +0800
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Eli Zaretskii <address@hidden> writes:
> I think the small patch below fixes this. But since this is about
> pretest, I would like second opinion on that from anyone who is
> familiar with this stuff (not only on MS-Windows). In particular, I'd
> like to hear from Jason.
If I understand your patch correctly, what you are effectively doing is
to compute the x and y location of the tooltip, then patch it up
afterwards if explicit arguments were given. This seems ok for a
temporary workaround until the reason Windows behaviour differs from
other plaforms can be found.
> === modified file 'src/w32fns.c'
> --- src/w32fns.c 2010-01-13 08:35:10 +0000
> +++ src/w32fns.c 2010-03-30 12:57:13 +0000
> @@ -5927,6 +5927,10 @@ Text larger than the specified size is c
> /* Move the tooltip window where the mouse pointer is. Resize and
> show it. */
> compute_tip_xy (f, parms, dx, dy, width, height, &root_x, &root_y);
> + if (f->top_pos)
> + root_y = f->top_pos;
> + if (f->left_pos)
> + root_x = f->left_pos;
> /* Adjust Window size to take border into account. */