# HG changeset patch # User Eli Zaretskii # Date 1142094699 0 # Node ID 8b54066613d13d1217d9911d9c1d7b2d873e38da # Parent a13585e93d5685997098bca7d6c2aa729f01bddd (w32_wnd_proc): Ignore middle and extra button events if a menu is already active (the menubar_active flag is on). diff -r a13585e93d56 -r 8b54066613d1 src/w32fns.c --- a/src/w32fns.c Sat Mar 11 16:26:31 2006 +0000 +++ b/src/w32fns.c Sat Mar 11 16:31:39 2006 +0000 @@ -3250,6 +3250,11 @@ 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 ();