summaryrefslogtreecommitdiff
path: root/src/pgtkfns.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-02 20:28:58 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-02 20:28:58 +0800
commitbe6b9e45805f99a70617f7a190f8c76a80543b6c (patch)
tree2280012f5324feac36c094463839a3f4e81e2686 /src/pgtkfns.c
parent01615b24da97bdb5cc4eaec5792da8238dab9942 (diff)
downloademacs-be6b9e45805f99a70617f7a190f8c76a80543b6c.tar.gz
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)
Diffstat (limited to 'src/pgtkfns.c')
-rw-r--r--src/pgtkfns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index c2e5942dfbc..5d596861b8f 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);