Mercurial > emacs
changeset 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 | a13585e93d56 |
children | edfe073231ec |
files | src/w32fns.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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 ();