summaryrefslogtreecommitdiff
path: root/xmouseless.c
diff options
context:
space:
mode:
authorJohannes Bensmann <johannesbensmann@gmx.de>2019-06-09 10:38:43 +0200
committerJohannes Bensmann <johannesbensmann@gmx.de>2019-06-09 10:38:43 +0200
commite4ae88ece770aa22769f2ab457ccc2144245a916 (patch)
tree391911e002be45c6acbb12c3b31d934063d7e6ba /xmouseless.c
parent8d33bbdd44b99d937294173d0a7e91a10c484898 (diff)
added XInitThreads()
Diffstat (limited to 'xmouseless.c')
-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);
}