summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmouseless.c5
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);
}