]> git.eshelyaron.com Git - emacs.git/commitdiff
Turn on XInput 2 support by default
authorPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 08:48:24 +0000 (16:48 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 4 May 2022 08:51:48 +0000 (16:51 +0800)
The support doesn't interfere with compatibility, since Emacs
built with XInput 2 support transparently falls back to Core
Input when a suitable version of the input extension is not
available.  It also matured much sooner than expected, so
enabling this by default will lead to new features being
available to more users.

* INSTALL:
* configure.ac:
* etc/NEWS: Enable XInput 2 support by default.

INSTALL
configure.ac
etc/NEWS

diff --git a/INSTALL b/INSTALL
index f2687225daf66fa00e9119649db16e68340e0137..95d2dbda80cc1b99d50a5d49919cf9934f0d9bfc 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -358,9 +358,9 @@ Use --without-toolkit-scroll-bars to disable Motif or Xaw3d scroll bars.
 Use --without-xim to inhibit the default use of X Input Methods.
 In this case, the X resource useXIM can be used to turn on use of XIM.
 
-Use --with-xinput2 to enable the use of version 2 of the X Input
-Extension.  This enables support for touchscreens, pinch gestures, and
-scroll wheels that report scroll deltas at pixel-level precision.
+Use --without-xinput2 to disable the use of version 2 of the X Input
+Extension.  This disables support for touchscreens, pinch gestures,
+and scroll wheels that report scroll deltas at pixel-level precision.
 
 Use --disable-largefile to omit support for files larger than 2GB, and
 --disable-year2038 to omit support for timestamps past the year 2038,
index b7189593a631cb33deb3b3a9d6e2dbe9fcd985a4..484ce980a52ba852cd3185e3e3554952d776f6d7 100644 (file)
@@ -490,7 +490,7 @@ OPTION_DEFAULT_ON([modules],[don't compile with dynamic modules support])
 OPTION_DEFAULT_ON([threads],[don't compile with elisp threading support])
 OPTION_DEFAULT_OFF([native-compilation],[compile with Emacs Lisp native compiler support])
 OPTION_DEFAULT_OFF([cygwin32-native-compilation],[use native compilation on 32-bit Cygwin])
-OPTION_DEFAULT_OFF([xinput2],[use version 2 of the X Input Extension for input])
+OPTION_DEFAULT_ON([xinput2],[don't use version 2 of the X Input Extension for input])
 
 AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB],
  [use a file notification library (LIB one of: yes, inotify, kqueue, gfile, w32, no)])],
index 73e61aab32706848c923c635d155e516dfb91359..1fd7e0bd24cd577ac1dcc3bf124a1e6ee5afac96 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -59,10 +59,11 @@ If a constant file name is required, the file can be renamed to
 "emacs.pdmp", and Emacs will find it during startup anyway.
 
 ---
-** Emacs now supports use of XInput 2 for input events.
-If your X server has support and you have the XInput 2 development headers
-installed, you can configure Emacs with the option '--with-xinput2' to enable
-this support.
+** Emacs now uses of XInput 2 for input events.
+If your X server has support and you have the XInput 2 development
+headers installed, Emacs will use the X Input Extension for handling
+input.  If this causes problems, you can configure Emacs with the
+option '--without-xinput2' to disable this support.
 
 The named feature 'xinput2' can be used to test for the presence of
 XInput 2 support from Lisp programs.