From: ozkl Date: Sun, 18 Aug 2019 08:20:59 +0000 (+0300) Subject: added XkbSetDetectableAutoRepeat to xlib port for getting key press X-Git-Url: https://git.0x19.co/screenshots/static/gitweb.css?a=commitdiff_plain;h=afc47e5268ecbc983451d925d84a1b8e35e44053;p=doomgeneric-snom360 added XkbSetDetectableAutoRepeat to xlib port for getting key press events right way --- diff --git a/doomgeneric/doomgeneric_xlib.c b/doomgeneric/doomgeneric_xlib.c index 7a1972a..cf92fc7 100644 --- a/doomgeneric/doomgeneric_xlib.c +++ b/doomgeneric/doomgeneric_xlib.c @@ -105,6 +105,8 @@ void DG_Init() XSetForeground(s_Display, s_Gc, whiteColor); + XkbSetDetectableAutoRepeat(s_Display, 1, 0); + // Wait for the MapNotify event while(1)