1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Avoid races between the tooltip and compositor on X and Android

* java/org/gnu/emacs/EmacsView.java (onLayout): Don't send
exposure events when the window is still to be attached.

* src/androidfns.c (Fx_show_tip):

* src/xfns.c (Fx_show_tip): Block async input around initial
frame update.
This commit is contained in:
Po Lu 2024-06-19 10:57:07 +08:00
parent 94be2b2682
commit 5fceb53856
3 changed files with 18 additions and 1 deletions

View file

@ -425,7 +425,7 @@ public final class EmacsView extends ViewGroup
window.viewLayout (left, top, right, bottom);
}
if (needExpose)
if (needExpose && isAttachedToWindow)
EmacsNative.sendExpose (this.window.handle, 0, 0,
right - left, bottom - top);
}