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
29#include <X11/IntrinsicP.h>29#include <X11/IntrinsicP.h>
30#include <X11/StringDefs.h>30#include <X11/StringDefs.h>
31#include <X11/keysym.h>31#include <X11/keysym.h>
32#include <X11/XKBlib.h>
32#include "keysym2ucs.h"33#include "keysym2ucs.h"
33 34
34#undef Font35#undef Font
@@ -495,6 +496,8 @@ xinitscreen(void) · 460 unmodified lines
495 iprint("drawterm: open %r, DISPLAY is %s\n", disp_val);496 iprint("drawterm: open %r, DISPLAY is %s\n", disp_val);
496 exit(0);497 exit(0);
497 }498 }
499 XkbSetDetectableAutoRepeat(xkmcon, True, NULL);
500
498 xsnarfcon = XOpenDisplay(NULL);501 xsnarfcon = XOpenDisplay(NULL);
499 if(xsnarfcon == 0){502 if(xsnarfcon == 0){
500 disp_val = getenv("DISPLAY");503 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