From a14eb65e82d226fe8b33ca23d29eeba02066357d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Nov 2021 09:42:11 +0100 Subject: Window: implement function to disable key repeat --- src/mgl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mgl.c') 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 +#include #include #ifndef NDEBUG #include @@ -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) { -- cgit v1.2.3