a bug of kdrive

2010-04-02 Thread xianghui liu
hello:
I think I find a problem, and maybe it is a bug.
In xorg-server-1.7.1/hw/kdrive/src/kinput.c, on line of 895:  
ki-maxScanCode = 0;  .  Both the minScanCode and the maxScanCode are set
to be zero. So  on line of 1880, the program will give a error message
driver %d wanted to post scancode %d outside of [0, 0]!.
The right way is set maxScanCode to be 255.
It is my first send e-mail to this mail-list. I wish have a reply.

Liu XiangHui
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: a bug of kdrive

2010-04-02 Thread Mikhail Gusarov

Twas brillig at 19:13:14 02.04.2010 UTC+08 when largep...@gmail.com did
gyre and gimble:

 xl In xorg-server-1.7.1/hw/kdrive/src/kinput.c, on line of 895: 
 xl ki-maxScanCode = 0; .  Both the minScanCode and the maxScanCode
 xl are set to be zero. So on line of 1880, the program will give a
 xl error message driver %d wanted to post scancode %d outside of [0,
 xl 0]!.

Those values are overriden in specific input drivers. E.g. the following
fix has been recently applied to evdev.c:

http://cgit.freedesktop.org/xorg/xserver/commit/?id=e086b99c1f5ce351b578de7cd9f616bc79d6cf64

 xl It is my first send e-mail to this mail-list. I wish have a reply.

You've got it :)

-- 
  http://fossarchy.blogspot.com/


pgp4IaUgeEJTt.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg