summaryrefslogtreecommitdiff
authorSascha Hlusiak <saschahlusiak@arcor.de>2008-12-08 11:24:39 (GMT)
committer Sascha Hlusiak <saschahlusiak@arcor.de>2008-12-08 11:24:39 (GMT)
commitbbf811514d3cdf84790bad5b852942a4e636902b (patch) (side-by-side diff)
treec13438f3afe069641c2ddecc15eb6384fff7fa4a
parent8c1dd40a04693f09f4fcea6e7f905af34c7589de (diff)
downloadxserver-bbf811514d3cdf84790bad5b852942a4e636902b.zip
xserver-bbf811514d3cdf84790bad5b852942a4e636902b.tar.gz
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>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--xkb/ddxCtrls.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/xkb/ddxCtrls.c b/xkb/ddxCtrls.c
index 34ea0bd..be269c2 100644
--- a/xkb/ddxCtrls.c
+++ b/xkb/ddxCtrls.c
@@ -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