summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Hlusiak <saschahlusiak@arcor.de>2008-02-19 21:05:49 +0100
committerSascha Hlusiak <saschahlusiak@arcor.de>2008-02-19 21:05:49 +0100
commitf766404fd94851ea8b3cedc5c7336a5524b7a7ae (patch)
treed9ffb48ce2d53af1e91606a21df347923682982d
parentd032d3c8b40e152cc0fd8409f910f23559873aaf (diff)
Don't inform kernel evdev driver about autorepeat change
We do autorepeat in software now. Informing the kernel would change the autorepeat speed on virtual terminals, which is probably not wanted so we leave the settings untouched.
-rw-r--r--src/evdev_key.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/evdev_key.c b/src/evdev_key.c
index eed6319..0f4edc6 100644
--- a/src/evdev_key.c
+++ b/src/evdev_key.c
@@ -353,21 +353,6 @@ EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl)
ev[i].value = (ctrl->leds & bits[i].xbit) > 0;
}
write(pInfo->fd, ev, sizeof(ev));
-
- if (device->key && device->key->xkbInfo && device->key->xkbInfo->desc
- && device->key->xkbInfo->desc->ctrls) {
- XkbControlsRec *ctrls = device->key->xkbInfo->desc->ctrls;
-
- ev[0].type = EV_REP;
- ev[0].code = REP_DELAY;
- ev[0].value = ctrls->repeat_delay;
-
- ev[1].type = EV_REP;
- ev[1].code = REP_PERIOD;
- ev[1].value = ctrls->repeat_interval;
-
- write(pInfo->fd, ev, sizeof(ev[0]) * 2);
- }
}
int