]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/mwheel.el (mouse-wheel-obey-old-style-wheel-buttons): Simplify
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 21 Jan 2024 04:12:36 +0000 (23:12 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:31:53 +0000 (08:31 +0100)
(cherry picked from commit eca7368039d841993ba649bc144017598592fa56)

lisp/mwheel.el

index fc1f8e8b6d6cd7ecb333ebe59323f7816d19f91d..d3cdab87e8476c98446444cdf6b5e2efab352f80 100644 (file)
              (bound-and-true-p mouse-wheel-mode))
     (mouse-wheel-mode 1)))
 
-(defvar mouse-wheel-obey-old-style-wheel-buttons
-  ;; FIXME: Yuck!
-  (if (or (featurep 'w32-win) (featurep 'ns-win)
-          (featurep 'haiku-win) (featurep 'pgtk-win)
-          (featurep 'android-win))
-      (if (featurep 'xinput2)
-          nil
-        (unless (featurep 'x)
-          t))
-    t)
+(defvar mouse-wheel-obey-old-style-wheel-buttons t
   "If non-nil, treat mouse-4/5/6/7 events as mouse wheel events.
 These are the event names used historically in X11 before XInput2.
 They are sometimes generated by things like `xterm-mouse-mode' as well.")