winex11.drv: As the min keycode is always greater or equal to 8, we
don't need to scan XKeymapEvent.key_vector from 0 but from 8.
This commit is contained in:
parent
d1b2282a9b
commit
54ac76a387
|
@ -1283,7 +1283,10 @@ void X11DRV_KeymapNotify( HWND hwnd, XEvent *event )
|
||||||
DWORD time = GetCurrentTime();
|
DWORD time = GetCurrentTime();
|
||||||
|
|
||||||
alt = control = shift = 0;
|
alt = control = shift = 0;
|
||||||
for (i = 0; i < 32; i++)
|
/* the minimum keycode is always greater or equal to 8, so we can
|
||||||
|
* skip the first 8 values, hence start at 1
|
||||||
|
*/
|
||||||
|
for (i = 1; i < 32; i++)
|
||||||
{
|
{
|
||||||
if (!event->xkeymap.key_vector[i]) continue;
|
if (!event->xkeymap.key_vector[i]) continue;
|
||||||
for (j = 0; j < 8; j++)
|
for (j = 0; j < 8; j++)
|
||||||
|
|
Loading…
Reference in New Issue