From 280b7f92d729ec910ffa3d18dce7bbc215be7a3c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Jun 2009 22:38:24 +1000 Subject: [PATCH] dix: reduce MDs and xtest pointers to 7 buttons by default. MD's will soon be the union of all devices anyway. XTest pointers are only for the core protocol XTest stuff, so 7 buttons (lmr + 4 wheel buttons) should do. Signed-off-by: Peter Hutterer --- dix/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/devices.c b/dix/devices.c index 5fa196e1f..3d190657e 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -554,7 +554,7 @@ CoreKeyboardProc(DeviceIntPtr pDev, int what) static int CorePointerProc(DeviceIntPtr pDev, int what) { -#define NBUTTONS 32 +#define NBUTTONS 7 #define NAXES 2 BYTE map[NBUTTONS + 1]; int i = 0;