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);