summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2019-06-21 09:25:47 +0900
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2019-06-21 09:25:47 +0900
commit2a229f495fe5c8be84b3c5718f87d86c8d06a644 (patch)
tree3eac91d29d7e8849ccc5d95bdfa310c9b3164aec /src/xfns.c
parent2da3305c3c335adcbc9e541b7c50e4e814df87d1 (diff)
downloademacs-2a229f495fe5c8be84b3c5718f87d86c8d06a644.tar.gz
Fix blank tooltips on cairo (Bug#36298)
* src/xterm.h (x_cr_update_surface_desired_size) [USE_CAIRO]: Add extern. * src/xterm.c (x_cr_update_surface_desired_size) [USE_CAIRO]: Make non-static. * src/xfns.c (Fx_show_tip) [USE_CAIRO]: Call x_cr_update_surface_desired_size.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index c9fe3e11f2d..6d14fecde15 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -6956,6 +6956,10 @@ Text larger than the specified size is clipped. */)
XMapRaised (FRAME_X_DISPLAY (tip_f), FRAME_X_WINDOW (tip_f));
unblock_input ();
+#ifdef USE_CAIRO
+ x_cr_update_surface_desired_size (tip_f, width, height);
+#endif /* USE_CAIRO */
+
w->must_be_updated_p = true;
update_single_window (w);
set_buffer_internal_1 (old_buffer);