Two lines above we assign nbbuttons = min(7, MAXBUTTONS), the latter of which is 32.
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/xf86Wacom.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c index 55b8b7c..4127239 100644 --- a/src/xf86Wacom.c +++ b/src/xf86Wacom.c @@ -341,12 +341,6 @@ static int wcmDevInit(DeviceIntPtr pWcm) nbkeys = nbbuttons; /* Same number of keys since any button may be * configured as an either mouse button or key */ - if (!nbbuttons) - nbbuttons = nbkeys = 1; /* Xserver 1.5 or later crashes when - * nbbuttons = 0 while sending a beep - * This is only a workaround. - */ - DBG(10, priv, "(%s) %d buttons, %d keys, %d axes\n", pInfo->type_name, -- 2.1.0 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel