From b48f927687d9ec3dc9e9903a059fb471f4b2d165 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 11 Mar 2006 16:31:39 +0000 Subject: [PATCH] (w32_wnd_proc): Ignore middle and extra button events if a menu is already active (the menubar_active flag is on). --- src/w32fns.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/w32fns.c b/src/w32fns.c index 34450fd5219..c116c51603b 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -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 (); -- 2.39.2