GNU bug report logs - #31880
26.1; VC mode line popup when clicked is off screen

Previous Next

Package: emacs;

Reported by: Brian Zwahr <echosa <at> echosa.net>

Date: Mon, 18 Jun 2018 15:00:02 UTC

Severity: minor

Found in version 26.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 31880 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Brian Zwahr <echosa <at> echosa.net>, 31880 <at> debbugs.gnu.org
Subject: Re: bug#31880: 26.1; VC mode line popup when clicked is off screen
Date: Thu, 21 Jun 2018 10:31:42 +0200
martin rudalics <rudalics <at> gmx.at> writes:

>> Yet another instance of a disagreement between how GTK and X calculate
>> pixels. Who will rid me of this turbulent mix?
>
> In xg_show_tooltip we have
>
>       gtk_window_move (x->ttip_window, root_x / xg_get_scale (f),
> 		       root_y / xg_get_scale (f));
>
> I suppose this is TRT with a scaled display because root_x and root_y
> are unscaled and hence we have to scale them to get the appropriate
> coordinates for scaled displays.  Right?
>
> Then what happens when we turn off GTK tooltips on a scaled display by
> setting 'x-gtk-use-system-tooltips' to nil?  IIUC the tooltip will now
> appear at the "wrong" position.  Or am I missing something?

When not using GTK tooltips, we end up using XMoveResizeWindow (near
the end of Fx_show_tip), which wants device pixel positions, which is
what compute_tip_xy produces, so the tooltip appears in the right
place.

Robert






This bug report was last modified 6 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.