aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mgl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mgl.c b/src/mgl.c
index 8988003..d73e2d0 100644
--- a/src/mgl.c
+++ b/src/mgl.c
@@ -95,6 +95,7 @@ int mgl_init(void) {
prev_xerror = XSetErrorHandler(ignore_xerror);
prev_xioerror = XSetIOErrorHandler(ignore_xioerror);
+ XInitThreads();
XkbSetDetectableAutoRepeat(context.connection, True, NULL);
context.wm_delete_window_atom = XInternAtom(context.connection, "WM_DELETE_WINDOW", False);