diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-08-25 09:28:19 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-08-25 09:38:29 +0200 |
commit | 0bb02d2108ea2c89de7f5f740f12fb245a90d3a5 (patch) | |
tree | a0bd7ff2f2a27129c53884608bf5e62cd0fa64c6 /src/plugins/platforms | |
parent | 82f95318d61dbfebaa04182de2445a6576a621cd (diff) |
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>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/xlib/qxlibintegration.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xlib/qxlibintegration.cpp b/src/plugins/platforms/xlib/qxlibintegration.cpp index b5c59e9554..5be7420426 100644 --- a/src/plugins/platforms/xlib/qxlibintegration.cpp +++ b/src/plugins/platforms/xlib/qxlibintegration.cpp @@ -66,6 +66,8 @@ QXlibIntegration::QXlibIntegration() mEventDispatcher = createUnixEventDispatcher(); QGuiApplicationPrivate::instance()->setEventDispatcher(mEventDispatcher); + XInitThreads(); + mPrimaryScreen = new QXlibScreen(); mScreens.append(mPrimaryScreen); screenAdded(mPrimaryScreen); |