]> git.eshelyaron.com Git - emacs.git/commitdiff
Temporary fix for mouse events on child frames
authorEli Zaretskii <eliz@gnu.org>
Sat, 26 Oct 2024 12:31:42 +0000 (15:31 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:53:39 +0000 (15:53 +0100)
* 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

index 95c0927b55bb300e2b9dcbb33205e8f4065fdaa1..63d322087bc4e4225d2e0638330410e7f1e071c9 100644 (file)
@@ -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)