emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master be6b9e4580: Add column width to tooltip frame width on pgtk


From: Po Lu
Subject: master be6b9e4580: Add column width to tooltip frame width on pgtk
Date: Sun, 2 Jan 2022 07:31:02 -0500 (EST)

branch: master
commit be6b9e45805f99a70617f7a190f8c76a80543b6c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Add column width to tooltip frame width on pgtk
    
    * src/pgtkfns.c (Fx_show_tip): Add column width to width to
    avoid an odd problem in the GTK allocation code.  (bug#52705)
---
 src/pgtkfns.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index c2e5942dfb..5d596861b8 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -3440,6 +3440,7 @@ Text larger than the specified size is clipped.  */)
   /* Add the frame's internal border to calculated size.  */
   width = XFIXNUM (Fcar (size)) + 2 * FRAME_INTERNAL_BORDER_WIDTH (tip_f);
   height = XFIXNUM (Fcdr (size)) + 2 * FRAME_INTERNAL_BORDER_WIDTH (tip_f);
+  width += FRAME_COLUMN_WIDTH (tip_f);
 
   /* Calculate position of tooltip frame.  */
   compute_tip_xy (tip_f, parms, dx, dy, width, height, &root_x, &root_y);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]