diff options
Diffstat (limited to 'xmouseless.c')
-rw-r--r-- | xmouseless.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmouseless.c b/xmouseless.c index c3016bc..0eb54f0 100644 --- a/xmouseless.c +++ b/xmouseless.c @@ -59,13 +59,16 @@ void click(int button, int is_press) { } void init_x() { + /* initialize support for concurrent threads */ + XInitThreads(); + dpy=XOpenDisplay((char *)0); screen=DefaultScreen(dpy); root = RootWindow(dpy, screen); XGrabKeyboard(dpy, root, False, GrabModeAsync, GrabModeAsync, CurrentTime); - /* turn auto repeat of key off */ + /* turn auto key repeat off */ XAutoRepeatOff(dpy); } |