From: Eli Zaretskii Date: Sat, 26 Oct 2024 12:31:42 +0000 (+0300) Subject: Temporary fix for mouse events on child frames X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1fadaf2becc4b28b3acbe76a2dc6808bb05aac3f;p=emacs.git 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) --- 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)