diff options
author | Eli Zaretskii <[email protected]> | 2006-03-11 16:31:39 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2006-03-11 16:31:39 +0000 |
commit | b48f927687d9ec3dc9e9903a059fb471f4b2d165 (patch) | |
tree | 7018dba6f0e8a9066d6b8a9a3394bbc418cebc80 /src/w32fns.c | |
parent | f161146b7eddd861ef6f0537ee5a851a659b2137 (diff) |
(w32_wnd_proc): Ignore middle and extra button events if a menu is already
active (the menubar_active flag is on).
Diffstat (limited to 'src/w32fns.c')
-rw-r--r-- | src/w32fns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 34450fd521..c116c51603 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 (); |