mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user