Mercurial > emacs
comparison src/w32fns.c @ 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 | 847d1fc86f9d |
children | 589489bb1924 65ca8fb66a0d |
comparison
equal
deleted
inserted
replaced
69878:7017df39d957 | 69879:a3c24f2249c9 |
---|---|
3295 /* Need to return true for XBUTTON messages, false for others, | 3295 /* Need to return true for XBUTTON messages, false for others, |
3296 to indicate that we processed the message. */ | 3296 to indicate that we processed the message. */ |
3297 return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP); | 3297 return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP); |
3298 | 3298 |
3299 case WM_MOUSEMOVE: | 3299 case WM_MOUSEMOVE: |
3300 /* Ignore mouse movements as long as the menu is active. These | |
3301 movements are processed by the window manager anyway, and | |
3302 it's wrong to handle them as if they happened on the | |
3303 underlying frame. */ | |
3304 f = x_window_to_frame (dpyinfo, hwnd); | |
3305 if (f && f->output_data.w32->menubar_active) | |
3306 return 0; | |
3307 | |
3300 /* If the mouse has just moved into the frame, start tracking | 3308 /* If the mouse has just moved into the frame, start tracking |
3301 it, so we will be notified when it leaves the frame. Mouse | 3309 it, so we will be notified when it leaves the frame. Mouse |
3302 tracking only works under W98 and NT4 and later. On earlier | 3310 tracking only works under W98 and NT4 and later. On earlier |
3303 versions, there is no way of telling when the mouse leaves the | 3311 versions, there is no way of telling when the mouse leaves the |
3304 frame, so we just have to put up with help-echo and mouse | 3312 frame, so we just have to put up with help-echo and mouse |