From a05c4c9de4c6ba03bad8e0320a069e48696b2115 Mon Sep 17 00:00:00 2001 From: Steven Tamm Date: Thu, 10 Oct 2002 22:05:02 +0000 Subject: [PATCH] * macterm.c (syms_of_macterm, mac_get_mouse_btn): Reversed functionality of mac-wheel-button-is-mouse-2 to be correct. Also switched the default to Qnil from Qt. --- src/macterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/macterm.c b/src/macterm.c index 09b6b9faaeb..59b41a19e75 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -11586,10 +11586,10 @@ mac_get_mouse_btn (EventRef ref) case kEventMouseButtonPrimary: return 0; case kEventMouseButtonSecondary: - return NILP (Vmac_wheel_button_is_mouse_2) ? 2 : 1; + return NILP (Vmac_wheel_button_is_mouse_2) ? 1 : 2; case kEventMouseButtonTertiary: case 4: /* 4 is the number for the mouse wheel button */ - return NILP (Vmac_wheel_button_is_mouse_2) ? 1 : 2; + return NILP (Vmac_wheel_button_is_mouse_2) ? 2 : 1; default: return 0; } @@ -13636,7 +13636,7 @@ Otherwise the option key is used. */); doc: /* Non-nil means that the wheel button will be treated as mouse-2 and the right click will be mouse-3. Otherwise, the right click will be mouse-2 and the wheel button mouse-3.*/); - Vmac_wheel_button_is_mouse_2 = Qt; + Vmac_wheel_button_is_mouse_2 = Qnil; DEFVAR_LISP ("mac-pass-command-to-system", &Vmac_pass_command_to_system, doc: /* If non-nil, the Mac \"Command\" key is passed on to the Mac -- 2.39.2