xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Nov 10 23:28:19 UTC 2019


 include/misc.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit fe439596b99db65bbae35eff1ea0b79db167f8d6
Author: Arthur Williams <taaparthur at gmail.com>
Date:   Thu Oct 17 22:47:37 2019 -0700

    include: Increase the number of max. input devices to 256.
    
    Extending the decade old f0124ed93, to increase the number of input
    devices from 40 to 256. 40 translates at most 9 MD, while 256 will allow
    63 MD. It is an arbitrary number, but people are hitting the current
    limit under reasonable conditions.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64793
    Signed-off-by: Arthur Williams <taaparthur at gmail.com>

diff --git a/include/misc.h b/include/misc.h
index 14920c3c3..4b632098b 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -91,7 +91,9 @@ OF THIS SOFTWARE.
 #define LIMITCLIENTS	256     /* Must be a power of 2 and <= MAXCLIENTS */
 #define MAXEXTENSIONS   128
 #define MAXFORMATS	8
-#define MAXDEVICES	40      /* input devices */
+#ifndef MAXDEVICES
+#define MAXDEVICES	256      /* input devices */
+#endif
 #define GPU_SCREEN_OFFSET 256
 
 /* 128 event opcodes for core + extension events, excluding GE */


More information about the xorg-commit mailing list