Fix threaded rendering

Call XInitThreads() before any other xlib call.

Change-Id: Ifa2cd4c3574ff024e733fbf51064699b2de0f8e6
Reviewed-on: http://codereview.qt.nokia.com/3573
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Lars Knoll 2011-08-25 09:28:19 +02:00 committed by Jørgen Lind
parent 82f95318d6
commit 0bb02d2108

View File

@ -66,6 +66,8 @@ QXlibIntegration::QXlibIntegration()
mEventDispatcher = createUnixEventDispatcher();
QGuiApplicationPrivate::instance()->setEventDispatcher(mEventDispatcher);
XInitThreads();
mPrimaryScreen = new QXlibScreen();
mScreens.append(mPrimaryScreen);
screenAdded(mPrimaryScreen);