code: drawterm

Download patch

ref: bdf96eb67a4c53ce623c72d1eef835aa86958dc9
parent: 632d598b923dd783c03e2ad3f0ed510588f9df11
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jan 21 11:25:43 EST 2017

gui-x11: fix unexpected keyups on auto repeat

--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -29,6 +29,7 @@
 #include <X11/IntrinsicP.h>
 #include <X11/StringDefs.h>
 #include <X11/keysym.h>
+#include <X11/XKBlib.h>
 #include "keysym2ucs.h"
 
 #undef	Font
@@ -495,6 +496,8 @@
 		iprint("drawterm: open %r, DISPLAY is %s\n", disp_val);
 		exit(0);
 	}
+	XkbSetDetectableAutoRepeat(xkmcon, True, NULL);
+
 	xsnarfcon = XOpenDisplay(NULL);
 	if(xsnarfcon == 0){
 		disp_val = getenv("DISPLAY");