Commit b0239945 authored by Ken Raeburn's avatar Ken Raeburn

Initialize thread support for Xlib.

* src/xterm.c (x_initialize) [THREADS_ENABLED]: Call XInitThreads
before doing anything else with X.
parent 108ef803
......@@ -12762,6 +12762,13 @@ x_initialize (void)
/* Try to use interrupt input; if we can't, then start polling. */
Fset_input_interrupt_mode (Qt);
/* This must be called before any other Xlib routines. */
if (XInitThreads () == 0)
fprintf (stderr,
"Warning: An error occurred initializing X11 thread support!\n");
XtToolkitInitialize ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment