History

gui-x11: fix unexpected keyups on auto repeat

cinap_lenrek committed 9 years ago

Commit bdf96eb1 parent 632d5981 file · +3 −0Browse files

Unified · Split

gui-x11/x11.c+3−0
@@ -29,6 +29,7 @@ typedef struct Cursor Cursor; · 28 unmodified lines
2929 #include <X11/IntrinsicP.h>
3030 #include <X11/StringDefs.h>
3131 #include <X11/keysym.h>
32+#include <X11/XKBlib.h>
3233 #include "keysym2ucs.h"
3334
3435 #undef Font
@@ -495,6 +496,8 @@ xinitscreen(void) · 460 unmodified lines
495496 iprint("drawterm: open %r, DISPLAY is %s\n", disp_val);
496497 exit(0);
497498 }
499+ XkbSetDetectableAutoRepeat(xkmcon, True, NULL);
500+
498501 xsnarfcon = XOpenDisplay(NULL);
499502 if(xsnarfcon == 0){
500503 disp_val = getenv("DISPLAY");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t