diff options
| author | Po Lu <luangruo@yahoo.com> | 2024-06-19 10:57:07 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2024-06-19 10:57:07 +0800 |
| commit | 5fceb53856583384e7adeab52494d1afc6eae666 (patch) | |
| tree | a94c40922f97e4eb8811c8e868033a5d5bd05f09 /java/org/gnu/emacs/EmacsView.java | |
| parent | 94be2b2682bc16b15755dca63ef8406018c9f3e9 (diff) | |
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.
Diffstat (limited to 'java/org/gnu/emacs/EmacsView.java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/org/gnu/emacs/EmacsView.java b/java/org/gnu/emacs/EmacsView.java index 2ea54217837..82792c3fcca 100644 --- a/java/org/gnu/emacs/EmacsView.java +++ b/java/org/gnu/emacs/EmacsView.java @@ -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); } |
