aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/androidfns.c7
-rw-r--r--src/xfns.c10
2 files changed, 17 insertions, 0 deletions
diff --git a/src/androidfns.c b/src/androidfns.c
index 4246f6d2be4..84558350dc0 100644
--- a/src/androidfns.c
+++ b/src/androidfns.c
@@ -2564,9 +2564,16 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0,
2564 /* Garbage the tip frame too. */ 2564 /* Garbage the tip frame too. */
2565 SET_FRAME_GARBAGED (tip_f); 2565 SET_FRAME_GARBAGED (tip_f);
2566 2566
2567 /* Block input around `update_single_window' and `flush_frame', lest a
2568 ConfigureNotify and Expose event arrive during the update, and set
2569 flags, e.g. garbaged_p, that are cleared once the update completes,
2570 leaving the requested exposure or configuration outstanding. */
2571 block_input ();
2567 w->must_be_updated_p = true; 2572 w->must_be_updated_p = true;
2568 update_single_window (w); 2573 update_single_window (w);
2569 flush_frame (tip_f); 2574 flush_frame (tip_f);
2575 unblock_input ();
2576
2570 set_buffer_internal_1 (old_buffer); 2577 set_buffer_internal_1 (old_buffer);
2571 unbind_to (count_1, Qnil); 2578 unbind_to (count_1, Qnil);
2572 windows_or_buffers_changed = old_windows_or_buffers_changed; 2579 windows_or_buffers_changed = old_windows_or_buffers_changed;
diff --git a/src/xfns.c b/src/xfns.c
index c48fa24b6be..4fdcf07e8fb 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -9299,9 +9299,19 @@ Text larger than the specified size is clipped. */)
9299 x_cr_update_surface_desired_size (tip_f, width, height); 9299 x_cr_update_surface_desired_size (tip_f, width, height);
9300#endif /* USE_CAIRO */ 9300#endif /* USE_CAIRO */
9301 9301
9302 /* Garbage the tip frame too. */
9303 SET_FRAME_GARBAGED (tip_f);
9304
9305 /* Block input around `update_single_window' and `flush_frame', lest a
9306 ConfigureNotify and Expose event arrive during the update, and set
9307 flags, e.g. garbaged_p, that are cleared once the update completes,
9308 leaving the requested exposure or configuration outstanding. */
9309 block_input ();
9302 w->must_be_updated_p = true; 9310 w->must_be_updated_p = true;
9303 update_single_window (w); 9311 update_single_window (w);
9304 flush_frame (tip_f); 9312 flush_frame (tip_f);
9313 unblock_input ();
9314
9305 set_buffer_internal_1 (old_buffer); 9315 set_buffer_internal_1 (old_buffer);
9306 unbind_to (count_1, Qnil); 9316 unbind_to (count_1, Qnil);
9307 windows_or_buffers_changed = old_windows_or_buffers_changed; 9317 windows_or_buffers_changed = old_windows_or_buffers_changed;