Commit b48f9276 authored by Eli Zaretskii's avatar Eli Zaretskii

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

active (the menubar_active flag is on).
parent f161146b
......@@ -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 ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment