From 0bb02d2108ea2c89de7f5f740f12fb245a90d3a5 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 25 Aug 2011 09:28:19 +0200 Subject: [PATCH] Fix threaded rendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Call XInitThreads() before any other xlib call. Change-Id: Ifa2cd4c3574ff024e733fbf51064699b2de0f8e6 Reviewed-on: http://codereview.qt.nokia.com/3573 Reviewed-by: Qt Sanity Bot Reviewed-by: Jørgen Lind --- src/plugins/platforms/xlib/qxlibintegration.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);