xfree86: don't let DGA steal key events outside of [9,255].

This commit is contained in:
Peter Hutterer 2008-09-26 17:01:12 +09:30
parent 56a24cf894
commit 036d424827

View File

@ -922,6 +922,9 @@ DGAStealKeyEvent(DeviceIntPtr dev, int index, int key_code, int is_down)
if(DGAScreenKey == NULL) /* no DGA */
return FALSE;
if (key_code < 8 || key_code > 255)
return FALSE;
pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]);
if(!pScreenPriv || !pScreenPriv->grabKeyboard) /* no direct mode */