From 6d94a6d171bffd53b5a66b9f489b02acb54e5e02 Mon Sep 17 00:00:00 2001 From: Olivier Samyn Date: Wed, 24 Feb 2010 00:12:42 +0100 Subject: [PATCH 1/2] aiptek: Initialize the keymap with 256 items. X.Org keymap requires at least 256 defined entries. This patch initialize the keymap with the required entries count. Signed-off-by: Olivier Samyn --- src/xf86Aiptek.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c index bb5aa21..c53ccde 100644 --- a/src/xf86Aiptek.c +++ b/src/xf86Aiptek.c @@ -174,7 +174,7 @@ static int linux_inputDevice_keyMap[] = * * This is a list of X keystrokes the macro keys can send. */ -static KeySym aiptek_map[] = +static KeySym aiptek_map[256] = { /* 0x00 .. 0x07 */ NoSymbol,NoSymbol,NoSymbol,NoSymbol,NoSymbol,NoSymbol,NoSymbol,NoSymbol, @@ -192,7 +192,7 @@ static KeySym aiptek_map[] = static KeySymsRec keysyms = { /* map minKeyCode maxKC width */ - aiptek_map, 8, 0x27, 1 + aiptek_map, 8, 0xff, 1 }; #endif -- 1.6.3.3