diff options
| author | Eli Zaretskii | 2006-03-11 16:31:39 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-03-11 16:31:39 +0000 |
| commit | b48f927687d9ec3dc9e9903a059fb471f4b2d165 (patch) | |
| tree | 7018dba6f0e8a9066d6b8a9a3394bbc418cebc80 /src | |
| parent | f161146b7eddd861ef6f0537ee5a851a659b2137 (diff) | |
| download | emacs-b48f927687d9ec3dc9e9903a059fb471f4b2d165.tar.gz emacs-b48f927687d9ec3dc9e9903a059fb471f4b2d165.zip | |
(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')
| -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 34450fd5219..c116c51603b 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -3250,6 +3250,11 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 3250 | BOOL up; | 3250 | BOOL up; |
| 3251 | int button; | 3251 | int button; |
| 3252 | 3252 | ||
| 3253 | /* Ignore middle and extra buttons as long as the menu is active. */ | ||
| 3254 | f = x_window_to_frame (dpyinfo, hwnd); | ||
| 3255 | if (f && f->output_data.w32->menubar_active) | ||
| 3256 | return 0; | ||
| 3257 | |||
| 3253 | if (parse_button (msg, HIWORD (wParam), &button, &up)) | 3258 | if (parse_button (msg, HIWORD (wParam), &button, &up)) |
| 3254 | { | 3259 | { |
| 3255 | if (up) ReleaseCapture (); | 3260 | if (up) ReleaseCapture (); |