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:
parent
70b4087c4d
commit
2b1d946392
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue
Block a user