aboutsummaryrefslogtreecommitdiff
path: root/src/mgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgl.c')
-rw-r--r--src/mgl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mgl.c b/src/mgl.c
index 02fe8a5..f93704e 100644
--- a/src/mgl.c
+++ b/src/mgl.c
@@ -1,5 +1,6 @@
#include "../include/mgl/mgl.h"
#include <X11/Xutil.h>
+#include <X11/XKBlib.h>
#include <stdio.h>
#ifndef NDEBUG
#include <stdlib.h>
@@ -67,6 +68,7 @@ int mgl_init(void) {
prev_xerror = XSetErrorHandler(ignore_xerror);
prev_xioerror = XSetIOErrorHandler(ignore_xioerror);
+ XkbSetDetectableAutoRepeat(context.connection, True, NULL);
context.wm_delete_window_atom = XInternAtom(context.connection, "WM_DELETE_WINDOW", False);
if(!context.wm_delete_window_atom) {