aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidterm.c
diff options
context:
space:
mode:
authorPaul Eggert2025-01-26 22:15:49 -0800
committerPaul Eggert2025-01-26 23:05:53 -0800
commit2e8ef0910412aef8f9f1beba7c942473ad8602bb (patch)
treeb3afdeef0bb73cac9c1531a2ef28eb8766448dbe /src/androidterm.c
parentff65cc9944dc0b37986d512ee8b9817c6913db36 (diff)
downloademacs-2e8ef0910412aef8f9f1beba7c942473ad8602bb.tar.gz
emacs-2e8ef0910412aef8f9f1beba7c942473ad8602bb.zip
Protect against GCing of last_mouse_window
* src/window.c (last_mouse_window): New global var. All static instances removed, and all their uses replaced with this global var. This fixes a very unlikely bug where last_mouse_window was GC’ed and a new window created in its place. It also fixes several places that assumed NIL_IS_ZERO without static_asserting it. (init_window_once): Initialize the new var.
Diffstat (limited to 'src/androidterm.c')
-rw-r--r--src/androidterm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/androidterm.c b/src/androidterm.c
index 688f254ee23..e0f66652300 100644
--- a/src/androidterm.c
+++ b/src/androidterm.c
@@ -1179,7 +1179,6 @@ handle_one_android_event (struct android_display_info *dpyinfo,
1179 && (f == XFRAME (selected_frame) 1179 && (f == XFRAME (selected_frame)
1180 || !NILP (focus_follows_mouse))) 1180 || !NILP (focus_follows_mouse)))
1181 { 1181 {
1182 static Lisp_Object last_mouse_window;
1183 Lisp_Object window 1182 Lisp_Object window
1184 = window_from_coordinates (f, event->xmotion.x, 1183 = window_from_coordinates (f, event->xmotion.x,
1185 event->xmotion.y, 0, 1184 event->xmotion.y, 0,