From 1fadaf2becc4b28b3acbe76a2dc6808bb05aac3f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 26 Oct 2024 15:31:42 +0300 Subject: [PATCH] Temporary fix for mouse events on child frames * src/w32inevt.c (do_mouse_event): Ignore mouse events when the selected frame is a child frame. (cherry picked from commit d7bf2cfd5d5713c9a9014807567e3f7e723280cf) --- src/w32inevt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/w32inevt.c b/src/w32inevt.c index 95c0927b55b..63d322087bc 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c @@ -471,8 +471,13 @@ do_mouse_event (MOUSE_EVENT_RECORD *event, DWORD but_change, mask, flags = event->dwEventFlags; int i; - /* Mouse didn't move unless MOUSE_MOVED says it did. */ struct frame *f = get_frame (); + + /* For now, mouse events on child frames are ignored, because the + coordinate conversion is not in place; FIXME. */ + if (FRAMEP (f->parent_frame)) + return 0; + /* Mouse didn't move unless MOUSE_MOVED says it did. */ f->mouse_moved = 0; switch (flags) -- 2.39.5