xfree86: don't let DGA steal key events outside of [9,255].
This commit is contained in:
parent
56a24cf894
commit
036d424827
|
@ -922,6 +922,9 @@ DGAStealKeyEvent(DeviceIntPtr dev, int index, int key_code, int is_down)
|
||||||
if(DGAScreenKey == NULL) /* no DGA */
|
if(DGAScreenKey == NULL) /* no DGA */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (key_code < 8 || key_code > 255)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]);
|
pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]);
|
||||||
|
|
||||||
if(!pScreenPriv || !pScreenPriv->grabKeyboard) /* no direct mode */
|
if(!pScreenPriv || !pScreenPriv->grabKeyboard) /* no direct mode */
|
||||||
|
|
Loading…
Reference in New Issue