xkb: disable xkb key repeats (temporarily)

Haven't quite figured out yet how to make these repeats work. Because we share
the class between devices, the key state is already set when we process the
master device's event, causing a repeat on each event.
This commit is contained in:
Peter Hutterer 2007-11-13 09:51:33 +10:30
parent 70b4087c4d
commit 2b1d946392

View File

@ -76,6 +76,7 @@ int xiEvent;
if ((behavior.type&XkbKB_Permanent)==0) {
switch (behavior.type) {
case XkbKB_Default:
#if 0
if (( xE->u.u.type == KeyPress ||
xE->u.u.type == DeviceKeyPress) &&
(keyc->down[key>>3] & (1<<(key&7)))) {
@ -112,6 +113,7 @@ int xiEvent;
XkbLastRepeatEvent= NULL;
return;
}
#endif
break;
case XkbKB_Lock:
if ( xE->u.u.type == KeyRelease ||