DrMcCoy/eos — pull request #3 by fleger (2012-01-18 16:35:50+00:00)
Title: Fix multi-threading related crash with X11

Steps to reproduce the crash:
- Launch Neverwinter Nights with eos,
- Go to Options -> Video Options,
- Move the Gamma Correction slider.

Error message:
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
eos: xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

The proposed pull request adds a call to XInitThreads before the SDL initialization, which effectively fixes the crash on my machine.