mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 15:48:07 +02:00
ddxCtrls.c: XkbDDXUsesSoftRepeat always returns 1 now
We'd like to do soft repeat in the server for all keys. Remove obscure check, that'd
prevent the server from autorepeating when delay is set to exactly 660ms and rate is
set to exactly 25 (interval=40).
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit bbf811514d)
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b0c6472552
commit
ff9b55d8cb
1 changed files with 0 additions and 20 deletions
|
|
@ -57,27 +57,7 @@ int realRepeat;
|
|||
int
|
||||
XkbDDXUsesSoftRepeat(DeviceIntPtr pXDev)
|
||||
{
|
||||
#ifndef XKB_ALWAYS_USES_SOFT_REPEAT
|
||||
if (pXDev && pXDev->kbdfeed ) {
|
||||
if (pXDev->kbdfeed->ctrl.autoRepeat) {
|
||||
if (pXDev->key && pXDev->key->xkbInfo) {
|
||||
XkbDescPtr xkb;
|
||||
xkb= pXDev->key->xkbInfo->desc;
|
||||
if ((xkb->ctrls->repeat_delay == 660) &&
|
||||
(xkb->ctrls->repeat_interval == 40) &&
|
||||
((xkb->ctrls->enabled_ctrls&(XkbSlowKeysMask|
|
||||
XkbBounceKeysMask|
|
||||
XkbMouseKeysMask))==0)) {
|
||||
return 0;
|
||||
}
|
||||
return ((xkb->ctrls->enabled_ctrls&XkbRepeatKeysMask)!=0);
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue