bool X11Factory::init()
{
// make sure xlib is safe-thread
- if( !XInitThreads() )
+ if( !var_InheritBool( getIntf(), "xlib" ) || !XInitThreads() )
+ {
msg_Err( getIntf(), "initializing xlib for multi-threading failed" );
+ return false;
+ }
// Create the X11 display
m_pDisplay = new X11Display( getIntf() );