Mercurial > emacs
changeset 69879:a3c24f2249c9
(w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements if a menu is active
on this frame.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 08 Apr 2006 20:04:57 +0000 |
parents | 7017df39d957 |
children | 13466a056f05 |
files | src/w32fns.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32fns.c Sat Apr 08 19:35:48 2006 +0000 +++ b/src/w32fns.c Sat Apr 08 20:04:57 2006 +0000 @@ -3297,6 +3297,14 @@ return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP); case WM_MOUSEMOVE: + /* Ignore mouse movements as long as the menu is active. These + movements are processed by the window manager anyway, and + it's wrong to handle them as if they happened on the + underlying frame. */ + f = x_window_to_frame (dpyinfo, hwnd); + if (f && f->output_data.w32->menubar_active) + return 0; + /* If the mouse has just moved into the frame, start tracking it, so we will be notified when it leaves the frame. Mouse tracking only works under W98 and NT4 and later. On earlier