emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32fns.c


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/src/w32fns.c
Date: Sat, 08 Apr 2006 20:04:58 +0000

Index: emacs/src/w32fns.c
diff -u emacs/src/w32fns.c:1.267 emacs/src/w32fns.c:1.268
--- emacs/src/w32fns.c:1.267    Sat Apr  8 12:26:25 2006
+++ emacs/src/w32fns.c  Sat Apr  8 20:04:57 2006
@@ -3297,6 +3297,14 @@
       return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP);
 
     case WM_MOUSEMOVE:
+      /* Ignore mouse movements as long as the menu is active.  These
+        movements are processed by the window manager anyway, and
+        it's wrong to handle them as if they happened on the
+        underlying frame.  */
+      f = x_window_to_frame (dpyinfo, hwnd);
+      if (f && f->output_data.w32->menubar_active)
+       return 0;
+
       /* If the mouse has just moved into the frame, start tracking
         it, so we will be notified when it leaves the frame.  Mouse
         tracking only works under W98 and NT4 and later. On earlier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]