]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_wnd_proc): Ignore middle and extra button events if a menu is already
authorEli Zaretskii <eliz@gnu.org>
Sat, 11 Mar 2006 16:31:39 +0000 (16:31 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 11 Mar 2006 16:31:39 +0000 (16:31 +0000)
active (the menubar_active flag is on).

src/w32fns.c

index 34450fd5219d3a8c06b81f19911b6c601e9403e8..c116c51603b628ca192e275022ee238957c6f523 100644 (file)
@@ -3250,6 +3250,11 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
        BOOL up;
        int button;
 
+       /* Ignore middle and extra buttons as long as the menu is active.  */
+       f = x_window_to_frame (dpyinfo, hwnd);
+       if (f && f->output_data.w32->menubar_active)
+         return 0;
+
        if (parse_button (msg, HIWORD (wParam), &button, &up))
          {
            if (up) ReleaseCapture ();