mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 22:48:01 +02: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:
parent
70b4087c4d
commit
2b1d946392
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue