diff options
author | Sascha Hlusiak <saschahlusiak@arcor.de> | 2008-12-08 12:24:39 +0100 |
---|---|---|
committer | Sascha Hlusiak <saschahlusiak@arcor.de> | 2008-12-08 12:24:39 +0100 |
commit | bbf811514d3cdf84790bad5b852942a4e636902b (patch) | |
tree | c13438f3afe069641c2ddecc15eb6384fff7fa4a | |
parent | 8c1dd40a04693f09f4fcea6e7f905af34c7589de (diff) |
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>
-rw-r--r-- | xkb/ddxCtrls.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/xkb/ddxCtrls.c b/xkb/ddxCtrls.c index 34ea0bd3f..be269c2af 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 |