(w32_wnd_proc): Ignore middle and extra button events if a menu is already

active (the menubar_active flag is on).
This commit is contained in:
Eli Zaretskii 2006-03-11 16:31:39 +00:00
parent f161146b7e
commit b48f927687

View 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 ();