summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfinput/xkb.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/dfinput/xkb.c b/plugins/dfinput/xkb.c
index 62f7fc06..4ac6f868 100644
--- a/plugins/dfinput/xkb.c
+++ b/plugins/dfinput/xkb.c
@@ -24,14 +24,14 @@ void InitKeyboard() {
wmprotocols = XInternAtom(g.Disp, "WM_PROTOCOLS", 0);
wmdelwindow = XInternAtom(g.Disp, "WM_DELETE_WINDOW", 0);
- XAutoRepeatOff(g.Disp);
+ XkbSetDetectableAutoRepeat(g.Disp, 1, NULL);
g.PadState[0].KeyStatus = 0xFFFF;
g.PadState[1].KeyStatus = 0xFFFF;
}
void DestroyKeyboard() {
- XAutoRepeatOn(g.Disp);
+ XkbSetDetectableAutoRepeat(g.Disp, 0, NULL);
}
void CheckKeyboard() {
@@ -83,15 +83,6 @@ void CheckKeyboard() {
return;
}
break;
-
- case FocusOut:
- XAutoRepeatOn(g.Disp);
- break;
-
- case FocusIn:
- XAutoRepeatOff(g.Disp);
- break;
}
}
}
-