diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:42:11 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:42:11 +0100 |
commit | a14eb65e82d226fe8b33ca23d29eeba02066357d (patch) | |
tree | bbdb92dd8105e81a34fea601df851a3c25b03b76 /src/mgl.c | |
parent | ff24e4c604479fdcedfacca35af3bb4810683c68 (diff) |
Window: implement function to disable key repeat
Diffstat (limited to 'src/mgl.c')
-rw-r--r-- | src/mgl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |