From 7ce9aaca2eda9fadc5e6bb8d28e970da8f2c8252 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 27 Feb 2000 21:36:00 +0000 Subject: [PATCH] (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice as 2 button mice. --- src/w32fns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w32fns.c b/src/w32fns.c index ea52c2d380..45ea7b1f47 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -124,7 +124,7 @@ Lisp_Object Vw32_enable_caps_lock; /* Modifier associated with Scroll Lock, or nil to act as a normal key. */ Lisp_Object Vw32_scroll_lock_modifier; -/* Switch to control whether we inhibit requests for synthesyzed bold +/* Switch to control whether we inhibit requests for synthesized bold and italic versions of fonts. */ Lisp_Object Vw32_enable_synthesized_fonts; @@ -4212,7 +4212,7 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) are used together, but only if user has two button mouse. */ case WM_LBUTTONDOWN: case WM_RBUTTONDOWN: - if (XINT (Vw32_num_mouse_buttons) == 3) + if (XINT (Vw32_num_mouse_buttons) > 2) goto handle_plain_button; { @@ -4275,7 +4275,7 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) case WM_LBUTTONUP: case WM_RBUTTONUP: - if (XINT (Vw32_num_mouse_buttons) == 3) + if (XINT (Vw32_num_mouse_buttons) > 2) goto handle_plain_button; { -- 2.20.1