]> git.0x19.co - doomgeneric-snom360/commitdiff
added XkbSetDetectableAutoRepeat to xlib port for getting key press
authorozkl <ozkl@users.noreply.github.com>
Sun, 18 Aug 2019 08:20:59 +0000 (11:20 +0300)
committerozkl <ozkl@users.noreply.github.com>
Sun, 18 Aug 2019 08:20:59 +0000 (11:20 +0300)
events right way

doomgeneric/doomgeneric_xlib.c

index 7a1972abf6bc8f3607413eb64bc1f3c25df38efd..cf92fc7e29c48f9b60ee6d6baf12bea973f44b06 100644 (file)
@@ -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)