Mercurial > emacs
diff src/w32fns.c @ 69406:8b54066613d1
(w32_wnd_proc): Ignore middle and extra button events if a menu is already
active (the menubar_active flag is on).
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 11 Mar 2006 16:31:39 +0000 |
parents | 3bd95f4f2941 |
children | 46a8c3e0161d |
line wrap: on
line diff
--- 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 ();