aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-04-08 20:05:43 +0000
committerEli Zaretskii2006-04-08 20:05:43 +0000
commitf93bd8e401f3d2ffc2196f2bb236bf557c43f10b (patch)
tree753d8335ccb63c9dc25bda72b00c8efcfc002ac7
parent31a4f621f9b605d56d43046686f0810927f1831d (diff)
downloademacs-f93bd8e401f3d2ffc2196f2bb236bf557c43f10b.tar.gz
emacs-f93bd8e401f3d2ffc2196f2bb236bf557c43f10b.zip
(w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements if a menu is active
on this frame.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32fns.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 85acd1c19c1..e91028e54e2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-04-08 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
4 if a menu is active on this frame.
5
12006-04-08 Dan Nicolaescu <dann@ics.uci.edu> 62006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * lisp.h (report_file_error): Mark as NO_RETURN. 8 * lisp.h (report_file_error): Mark as NO_RETURN.
diff --git a/src/w32fns.c b/src/w32fns.c
index 1cc3dc2800c..093739d1603 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3297,6 +3297,14 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
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