aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPo Lu2024-06-19 10:57:07 +0800
committerPo Lu2024-06-19 10:57:07 +0800
commit5fceb53856583384e7adeab52494d1afc6eae666 (patch)
treea94c40922f97e4eb8811c8e868033a5d5bd05f09 /java
parent94be2b2682bc16b15755dca63ef8406018c9f3e9 (diff)
downloademacs-5fceb53856583384e7adeab52494d1afc6eae666.tar.gz
emacs-5fceb53856583384e7adeab52494d1afc6eae666.zip
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')
-rw-r--r--java/org/gnu/emacs/EmacsView.java2
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
425 window.viewLayout (left, top, right, bottom); 425 window.viewLayout (left, top, right, bottom);
426 } 426 }
427 427
428 if (needExpose) 428 if (needExpose && isAttachedToWindow)
429 EmacsNative.sendExpose (this.window.handle, 0, 0, 429 EmacsNative.sendExpose (this.window.handle, 0, 0,
430 right - left, bottom - top); 430 right - left, bottom - top);
431 } 431 }